mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-28 19:58:34 -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:
@@ -1856,13 +1856,8 @@ void cmLocalUnixMakefileGenerator3
|
||||
{
|
||||
text = "Running external command ...";
|
||||
}
|
||||
std::set<std::string>::const_iterator dit;
|
||||
for ( dit = glIt->second.GetUtilities().begin();
|
||||
dit != glIt->second.GetUtilities().end();
|
||||
++ dit )
|
||||
{
|
||||
depends.push_back(*dit);
|
||||
}
|
||||
depends.insert(depends.end(), glIt->second.GetUtilities().begin(),
|
||||
glIt->second.GetUtilities().end());
|
||||
this->AppendEcho(commands, text,
|
||||
cmLocalUnixMakefileGenerator3::EchoGlobal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user