mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 05:39:57 -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:
@@ -184,10 +184,8 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
|
||||
std::vector<std::string> shortArgs = this->Names;
|
||||
this->Names.clear(); // clear out any values in Names
|
||||
this->Names.push_back(shortArgs[0]);
|
||||
for(unsigned int j = 1; j < shortArgs.size(); ++j)
|
||||
{
|
||||
this->UserGuessArgs.push_back(shortArgs[j]);
|
||||
}
|
||||
this->UserGuessArgs.insert(this->UserGuessArgs.end(),
|
||||
shortArgs.begin() + 1, shortArgs.end());
|
||||
}
|
||||
this->ExpandPaths();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user