Explorar el Código

Convert while loop to member insert.

Stephen Kelly hace 11 años
padre
commit
39622c995c
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  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);