mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
cmListCommand: Replace loop with member algorithm.
This commit is contained in:
1 parent
92a37f9279
commit
b54225732f
1 file changed
+3
-7
@@ -345,13 +345,9 @@ bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
size_t cc;
|
||||
size_t cnt = 0;
|
||||
for ( cc = 3; cc < args.size(); ++ cc )
|
||||
{
|
||||
varArgsExpanded.insert(varArgsExpanded.begin()+item+cnt, args[cc]);
|
||||
cnt ++;
|
||||
}
|
||||
|
||||
varArgsExpanded.insert(varArgsExpanded.begin()+item,
|
||||
args.begin() + 3, args.end());
|
||||
|
||||
std::string value = cmJoin(varArgsExpanded, ";");
|
||||
this->Makefile->AddDefinition(listName, value.c_str());
|
||||
|
||||
Reference in new issue
Block a user