diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-25 15:36:59 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-06 19:04:09 +0100 |
commit | 63f584b618b3381ad93c901f691191acd48329a7 (patch) | |
tree | c7bfa70deb028d54f8eddb04ff239745a55fa63b /Source/cmSetTestsPropertiesCommand.cxx | |
parent | 74c4d9d27aece9a619eaab330ad23cf4b0de2b19 (diff) | |
download | cmake-63f584b618b3381ad93c901f691191acd48329a7.tar.gz |
Replace while loop with member insert.
Diffstat (limited to 'Source/cmSetTestsPropertiesCommand.cxx')
-rw-r--r-- | Source/cmSetTestsPropertiesCommand.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmSetTestsPropertiesCommand.cxx b/Source/cmSetTestsPropertiesCommand.cxx index 032c78ea79..d079a19a41 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) |