mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05: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:
@@ -39,10 +39,7 @@ bool cmRemoveCommand
|
||||
// check for REMOVE(VAR v1 v2 ... vn)
|
||||
std::vector<std::string> argsExpanded;
|
||||
std::vector<std::string> temp;
|
||||
for(unsigned int j = 1; j < args.size(); ++j)
|
||||
{
|
||||
temp.push_back(args[j]);
|
||||
}
|
||||
temp.insert(temp.end(), args.begin() + 1, args.end());
|
||||
cmSystemTools::ExpandList(temp, argsExpanded);
|
||||
|
||||
// now create the new value
|
||||
|
||||
Reference in New Issue
Block a user