From f95543f8a6b38bf6d5350169bdb53d5066839b76 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 25 Jan 2015 15:42:12 +0100 Subject: cmMacroCommand: Extract iteration starting point. --- Source/cmMacroCommand.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/cmMacroCommand.cxx') 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::const_iterator eit; + std::vector::const_iterator eit + = expandedArgs.begin(); std::vector::size_type cnt = 0; - for(eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit) + for( ; eit != expandedArgs.end(); ++eit) { if ( cnt >= this->Args.size()-1 ) { -- cgit v1.2.1