summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-14 20:31:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 21:57:55 (GMT)
commit8910224950a2b723e0d4fd7c21a326af7fb2e050 (patch)
tree09eb05962917fc5f205db31ae06b8c105813617e /Source/cmMacroCommand.cxx
parent7b8725bf8472ebf4781ddd60ef8fcca9c3ad98dd (diff)
downloadCMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.zip
CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.gz
CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.bz2
Replace common loop pattern with cmJoin
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 81aaf3e..676e082 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -197,14 +197,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
{
argvDef += ";";
}
- const char* sep = "";
- std::vector<std::string>::const_iterator eit;
- for(eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit)
- {
- argvDef += sep;
- argvDef += *eit;
- sep = ";";
- }
+ argvDef += cmJoin(expandedArgs, ";");
argvDefInitialized = true;
}
cmSystemTools::ReplaceString(tmps, "${ARGV}", argvDef.c_str());