summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 02:09:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 14:14:47 (GMT)
commit92a37f92791f801d378b49fd86f097391facd02e (patch)
treed1fede7d6f9c614391be9f84db6a63d45233517c /Source/cmGeneratorExpression.cxx
parentaac44e71e6a6c2630f1c1e61b34cf91aa775dc02 (diff)
downloadCMake-92a37f92791f801d378b49fd86f097391facd02e.zip
CMake-92a37f92791f801d378b49fd86f097391facd02e.tar.gz
CMake-92a37f92791f801d378b49fd86f097391facd02e.tar.bz2
Convert raw loops to set member insert.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r--Source/cmGeneratorExpression.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index b2a2386..bf96951 100644
--- a/Source/cmGeneratorExpression.cxx
+++ b/Source/cmGeneratorExpression.cxx
@@ -98,12 +98,8 @@ const char *cmCompiledGeneratorExpression::Evaluate(
{
this->Output += (*it)->Evaluate(&context, dagChecker);
- for(std::set<std::string>::const_iterator
- p = context.SeenTargetProperties.begin();
- p != context.SeenTargetProperties.end(); ++p)
- {
- this->SeenTargetProperties.insert(*p);
- }
+ this->SeenTargetProperties.insert(context.SeenTargetProperties.begin(),
+ context.SeenTargetProperties.end());
if (context.HadError)
{
this->Output = "";