summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-25 14:42:12 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 19:51:06 (GMT)
commitf95543f8a6b38bf6d5350169bdb53d5066839b76 (patch)
tree7ac09eabd7ae9da318c7f00aa2de67242017cf4e /Source/cmMacroCommand.cxx
parent9fe8f49353f927882af256c7870eb24e4be0c9be (diff)
downloadCMake-f95543f8a6b38bf6d5350169bdb53d5066839b76.zip
CMake-f95543f8a6b38bf6d5350169bdb53d5066839b76.tar.gz
CMake-f95543f8a6b38bf6d5350169bdb53d5066839b76.tar.bz2
cmMacroCommand: Extract iteration starting point.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index e7c6a29..c1eb35e 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 )
{