cmListCommand: Replace joining loop with cmJoin algorithm.

This commit is contained in:
Stephen Kelly 2015-02-15 15:46:30 +01:00
parent 6a22e40147
commit a77af8f130

View File

@ -533,14 +533,8 @@ bool cmListCommand::HandleRemoveAtCommand(
varArgsExpanded.erase(cmRemoveIndices(varArgsExpanded, removed), varArgsExpanded.erase(cmRemoveIndices(varArgsExpanded, removed),
varArgsExpanded.end()); varArgsExpanded.end());
std::string value; std::string value = cmJoin(varArgsExpanded, ";");
const char* sep = "";
for ( cc = 0; cc < varArgsExpanded.size(); ++ cc )
{
value += sep;
value += varArgsExpanded[cc];
sep = ";";
}
this->Makefile->AddDefinition(listName, value.c_str()); this->Makefile->AddDefinition(listName, value.c_str());
return true; return true;