BUG: clean up scoping
This commit is contained in:
parent
435f4ad8b0
commit
fb6d598813
|
@ -136,19 +136,22 @@ bool cmIfCommand::InvokeInitialPass(const std::vector<cmListFileArgument>& args)
|
|||
return true;
|
||||
}
|
||||
|
||||
void IncrementArguments(std::list<std::string> &newArgs,
|
||||
std::list<std::string>::iterator &argP1,
|
||||
std::list<std::string>::iterator &argP2)
|
||||
namespace
|
||||
{
|
||||
if (argP1 != newArgs.end())
|
||||
{
|
||||
argP1++;
|
||||
argP2 = argP1;
|
||||
void IncrementArguments(std::list<std::string> &newArgs,
|
||||
std::list<std::string>::iterator &argP1,
|
||||
std::list<std::string>::iterator &argP2)
|
||||
{
|
||||
if (argP1 != newArgs.end())
|
||||
{
|
||||
argP2++;
|
||||
argP1++;
|
||||
argP2 = argP1;
|
||||
if (argP1 != newArgs.end())
|
||||
{
|
||||
argP2++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue