diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-24 17:18:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-06 18:04:09 (GMT) |
commit | 39622c995c189b4e22dfdc0e9aa29c8fce5eac17 (patch) | |
tree | 27f3d5c6b11a9fce61fbbef094d0cbce09cce569 /Source | |
parent | a7fcc148bdfa5e9f2c6901b0de8192f5aa043741 (diff) | |
download | CMake-39622c995c189b4e22dfdc0e9aa29c8fce5eac17.zip CMake-39622c995c189b4e22dfdc0e9aa29c8fce5eac17.tar.gz CMake-39622c995c189b4e22dfdc0e9aa29c8fce5eac17.tar.bz2 |
Convert while loop to member insert.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index db2f6fb..edf82bd 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -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); |