cmListCommand: Replace loop with member algorithm.
This commit is contained in:
parent
92a37f9279
commit
b54225732f
|
@ -345,13 +345,9 @@ bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
size_t cc;
|
|
||||||
size_t cnt = 0;
|
varArgsExpanded.insert(varArgsExpanded.begin()+item,
|
||||||
for ( cc = 3; cc < args.size(); ++ cc )
|
args.begin() + 3, args.end());
|
||||||
{
|
|
||||||
varArgsExpanded.insert(varArgsExpanded.begin()+item+cnt, args[cc]);
|
|
||||||
cnt ++;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string value = cmJoin(varArgsExpanded, ";");
|
std::string value = cmJoin(varArgsExpanded, ";");
|
||||||
this->Makefile->AddDefinition(listName, value.c_str());
|
this->Makefile->AddDefinition(listName, value.c_str());
|
||||||
|
|
Loading…
Reference in New Issue