1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Convert while loop to member insert.

This commit is contained in:
Stephen Kelly
2015-01-24 18:18:56 +01:00
parent a7fcc148bd
commit 39622c995c

View File

@@ -435,11 +435,7 @@ bool cmAddLibraryCommand
cmSystemTools::Message(msg.c_str() ,"Warning");
}
while (s != args.end())
{
srclists.push_back(*s);
++s;
}
srclists.insert(srclists.end(), s, args.end());
this->Makefile->AddLibrary(libName, type, srclists, excludeFromAll);