cmMacroCommand: Remove counting variable.
Start iteration at correct starting point directly.
This commit is contained in:
parent
11ecc31d0a
commit
0a4e5674ec
|
@ -167,19 +167,14 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
||||||
if (expandedArgs.size() > this->Args.size() - 1)
|
if (expandedArgs.size() > this->Args.size() - 1)
|
||||||
{
|
{
|
||||||
std::vector<std::string>::const_iterator eit
|
std::vector<std::string>::const_iterator eit
|
||||||
= expandedArgs.begin();
|
= expandedArgs.begin() + (this->Args.size() - 1);
|
||||||
std::vector<std::string>::size_type cnt = 0;
|
|
||||||
for( ; eit != expandedArgs.end(); ++eit)
|
for( ; eit != expandedArgs.end(); ++eit)
|
||||||
{
|
{
|
||||||
if ( cnt >= this->Args.size()-1 )
|
if (!argnDef.empty())
|
||||||
{
|
{
|
||||||
if (!argnDef.empty())
|
argnDef += ";";
|
||||||
{
|
|
||||||
argnDef += ";";
|
|
||||||
}
|
|
||||||
argnDef += *eit;
|
|
||||||
}
|
}
|
||||||
cnt ++;
|
argnDef += *eit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argnDefInitialized = true;
|
argnDefInitialized = true;
|
||||||
|
|
Loading…
Reference in New Issue