Browse Source

Convert while loop to member insert.

Stephen Kelly 10 years ago
parent
commit
39622c995c
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Source/cmAddLibraryCommand.cxx

+ 1 - 5
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);