BUG: clean up scoping

This commit is contained in:
Ken Martin 2005-11-17 09:44:32 -05:00
parent 435f4ad8b0
commit fb6d598813

View File

@ -136,10 +136,12 @@ bool cmIfCommand::InvokeInitialPass(const std::vector<cmListFileArgument>& args)
return true; return true;
} }
void IncrementArguments(std::list<std::string> &newArgs, namespace
{
void IncrementArguments(std::list<std::string> &newArgs,
std::list<std::string>::iterator &argP1, std::list<std::string>::iterator &argP1,
std::list<std::string>::iterator &argP2) std::list<std::string>::iterator &argP2)
{ {
if (argP1 != newArgs.end()) if (argP1 != newArgs.end())
{ {
argP1++; argP1++;
@ -149,6 +151,7 @@ void IncrementArguments(std::list<std::string> &newArgs,
argP2++; argP2++;
} }
} }
}
} }