cmMacroCommand: Extract iteration starting point.

This commit is contained in:
Stephen Kelly 2015-01-25 15:42:12 +01:00
parent 9fe8f49353
commit f95543f8a6
1 changed files with 3 additions and 2 deletions

View File

@ -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 )
{