diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSetTargetPropertiesCommand.cxx | 9 | ||||
-rw-r--r-- | Source/cmSetTestsPropertiesCommand.cxx | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx index 9a7fab2..e41a0ca 100644 --- a/Source/cmSetTargetPropertiesCommand.cxx +++ b/Source/cmSetTargetPropertiesCommand.cxx @@ -40,14 +40,7 @@ bool cmSetTargetPropertiesCommand this->SetError("called with incorrect number of arguments."); return false; } - while (j != args.end()) - { - propertyPairs.push_back(*j); - ++j; - propertyPairs.push_back(*j); - ++j; - } - // break out of the loop because j is already == end + propertyPairs.insert(propertyPairs.end(), j, args.end()); break; } else if (doingFiles) diff --git a/Source/cmSetTestsPropertiesCommand.cxx b/Source/cmSetTestsPropertiesCommand.cxx index 032c78e..d079a19 100644 --- a/Source/cmSetTestsPropertiesCommand.cxx +++ b/Source/cmSetTestsPropertiesCommand.cxx @@ -41,14 +41,7 @@ bool cmSetTestsPropertiesCommand this->SetError("called with incorrect number of arguments."); return false; } - while (j != args.end()) - { - propertyPairs.push_back(*j); - ++j; - propertyPairs.push_back(*j); - ++j; - } - // break out of the loop because j is already == end + propertyPairs.insert(propertyPairs.end(), j, args.end()); break; } else if (doingFiles) |