summaryrefslogtreecommitdiffstats
path: root/Source/cmSetTargetPropertiesCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-25 14:36:59 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-06 18:04:09 (GMT)
commit63f584b618b3381ad93c901f691191acd48329a7 (patch)
treec7bfa70deb028d54f8eddb04ff239745a55fa63b /Source/cmSetTargetPropertiesCommand.cxx
parent74c4d9d27aece9a619eaab330ad23cf4b0de2b19 (diff)
downloadCMake-63f584b618b3381ad93c901f691191acd48329a7.zip
CMake-63f584b618b3381ad93c901f691191acd48329a7.tar.gz
CMake-63f584b618b3381ad93c901f691191acd48329a7.tar.bz2
Replace while loop with member insert.
Diffstat (limited to 'Source/cmSetTargetPropertiesCommand.cxx')
-rw-r--r--Source/cmSetTargetPropertiesCommand.cxx9
1 files changed, 1 insertions, 8 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)