cmMacroCommand: Remove counting variable.

Start iteration at correct starting point directly.
This commit is contained in:
Stephen Kelly 2015-01-25 15:47:21 +01:00
parent 11ecc31d0a
commit 0a4e5674ec
1 changed files with 4 additions and 9 deletions

View File

@ -167,19 +167,14 @@ bool cmMacroHelperCommand::InvokeInitialPass
if (expandedArgs.size() > this->Args.size() - 1)
{
std::vector<std::string>::const_iterator eit
= expandedArgs.begin();
std::vector<std::string>::size_type cnt = 0;
= expandedArgs.begin() + (this->Args.size() - 1);
for( ; eit != expandedArgs.end(); ++eit)
{
if ( cnt >= this->Args.size()-1 )
if (!argnDef.empty())
{
if (!argnDef.empty())
{
argnDef += ";";
}
argnDef += *eit;
argnDef += ";";
}
cnt ++;
argnDef += *eit;
}
}
argnDefInitialized = true;