mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-14 04:02:09 +03:00
cmListCommand: Replace joining loop with cmJoin algorithm.
This commit is contained in:
1 parent
6a22e40147
commit
a77af8f130
1 file changed
+2
-8
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user