mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Use insert instead of a loop in some cases.
Limit this change to inserting into a vector from a vector. A follow up change can use insert for inserting into a set.
This commit is contained in:
@@ -271,11 +271,7 @@ bool cmFunctionCommand
|
||||
|
||||
// create a function blocker
|
||||
cmFunctionFunctionBlocker *f = new cmFunctionFunctionBlocker();
|
||||
for(std::vector<std::string>::const_iterator j = args.begin();
|
||||
j != args.end(); ++j)
|
||||
{
|
||||
f->Args.push_back(*j);
|
||||
}
|
||||
f->Args.insert(f->Args.end(), args.begin(), args.end());
|
||||
this->Makefile->AddFunctionBlocker(f);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user