mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
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)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user