Browse Source

cmMacroCommand: Extract iteration starting point.

Stephen Kelly 10 years ago
parent
commit
f95543f8a6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Source/cmMacroCommand.cxx

+ 3 - 2
Source/cmMacroCommand.cxx

@@ -164,9 +164,10 @@ bool cmMacroHelperCommand::InvokeInitialPass
           {
           {
           if (!argnDefInitialized)
           if (!argnDefInitialized)
             {
             {
-            std::vector<std::string>::const_iterator eit;
+            std::vector<std::string>::const_iterator eit
+                = expandedArgs.begin();
             std::vector<std::string>::size_type cnt = 0;
             std::vector<std::string>::size_type cnt = 0;
-            for(eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit)
+            for( ; eit != expandedArgs.end(); ++eit)
               {
               {
               if ( cnt >= this->Args.size()-1 )
               if ( cnt >= this->Args.size()-1 )
                 {
                 {