mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -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:
@@ -27,11 +27,7 @@ bool cmInstallProgramsCommand
|
||||
|
||||
this->Destination = args[0];
|
||||
|
||||
std::vector<std::string>::const_iterator s = args.begin();
|
||||
for (++s;s != args.end(); ++s)
|
||||
{
|
||||
this->FinalArgs.push_back(*s);
|
||||
}
|
||||
this->FinalArgs.insert(this->FinalArgs.end(), args.begin() + 1, args.end());
|
||||
|
||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
||||
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
||||
|
||||
Reference in New Issue
Block a user