summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-15 14:46:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-15 18:56:07 (GMT)
commita77af8f1301b6a9964c187ffff7a1893a80fbe90 (patch)
tree6df1ffb6134de8e92dfe036485d7f8b9c4bcc392 /Source/cmListCommand.cxx
parent6a22e40147b7df5285a67b63249562ecbeff112e (diff)
downloadCMake-a77af8f1301b6a9964c187ffff7a1893a80fbe90.zip
CMake-a77af8f1301b6a9964c187ffff7a1893a80fbe90.tar.gz
CMake-a77af8f1301b6a9964c187ffff7a1893a80fbe90.tar.bz2
cmListCommand: Replace joining loop with cmJoin algorithm.
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index 93c6d66..592681b 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -533,14 +533,8 @@ bool cmListCommand::HandleRemoveAtCommand(
varArgsExpanded.erase(cmRemoveIndices(varArgsExpanded, removed),
varArgsExpanded.end());
- std::string value;
- const char* sep = "";
- for ( cc = 0; cc < varArgsExpanded.size(); ++ cc )
- {
- value += sep;
- value += varArgsExpanded[cc];
- sep = ";";
- }
+ std::string value = cmJoin(varArgsExpanded, ";");
+
this->Makefile->AddDefinition(listName, value.c_str());
return true;