cmFunctionCommand: Split loop in two.
This commit is contained in:
parent
0ec1f45a13
commit
e5ebeae768
|
@ -128,8 +128,6 @@ bool cmFunctionHelperCommand::InvokeInitialPass
|
||||||
// define ARGV and ARGN
|
// define ARGV and ARGN
|
||||||
std::vector<std::string>::const_iterator eit;
|
std::vector<std::string>::const_iterator eit;
|
||||||
std::string argvDef;
|
std::string argvDef;
|
||||||
std::string argnDef;
|
|
||||||
unsigned int cnt = 0;
|
|
||||||
for ( eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit )
|
for ( eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit )
|
||||||
{
|
{
|
||||||
if (!argvDef.empty())
|
if (!argvDef.empty())
|
||||||
|
@ -137,6 +135,10 @@ bool cmFunctionHelperCommand::InvokeInitialPass
|
||||||
argvDef += ";";
|
argvDef += ";";
|
||||||
}
|
}
|
||||||
argvDef += *eit;
|
argvDef += *eit;
|
||||||
|
}
|
||||||
|
std::string argnDef;
|
||||||
|
unsigned int cnt = 0;
|
||||||
|
for ( eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit )
|
||||||
if ( cnt >= this->Args.size()-1 )
|
if ( cnt >= this->Args.size()-1 )
|
||||||
{
|
{
|
||||||
if (!argnDef.empty())
|
if (!argnDef.empty())
|
||||||
|
|
Loading…
Reference in New Issue