diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-25 15:42:12 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 20:51:06 +0100 |
commit | f95543f8a6b38bf6d5350169bdb53d5066839b76 (patch) | |
tree | 7ac09eabd7ae9da318c7f00aa2de67242017cf4e /Source/cmMacroCommand.cxx | |
parent | 9fe8f49353f927882af256c7870eb24e4be0c9be (diff) | |
download | cmake-f95543f8a6b38bf6d5350169bdb53d5066839b76.tar.gz |
cmMacroCommand: Extract iteration starting point.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index e7c6a29398..c1eb35e5fb 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -164,9 +164,10 @@ bool cmMacroHelperCommand::InvokeInitialPass { 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; - for(eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit) + for( ; eit != expandedArgs.end(); ++eit) { if ( cnt >= this->Args.size()-1 ) { |