COMP: fix style and work around old compilers

This commit is contained in:
Ken Martin 2007-12-04 10:43:33 -05:00
parent b786d4f184
commit ab7f11a239
2 changed files with 5 additions and 5 deletions

View File

@ -111,9 +111,9 @@ bool cmFunctionHelperCommand::InvokeInitialPass
// set the values for ARGV0 ARGV1 ... // set the values for ARGV0 ARGV1 ...
for (unsigned int t = 0; t < expandedArgs.size(); ++t) for (unsigned int t = 0; t < expandedArgs.size(); ++t)
{ {
strStream.str(""); cmOStringStream tmpStream;
strStream << "ARGV" << t; tmpStream << "ARGV" << t;
this->Makefile->AddDefinition(strStream.str().c_str(), this->Makefile->AddDefinition(tmpStream.str().c_str(),
expandedArgs[t].c_str()); expandedArgs[t].c_str());
} }

View File

@ -91,8 +91,8 @@ public:
" ...\n" " ...\n"
" endfunction(<name>)\n" " endfunction(<name>)\n"
"Define a function named <name> that takes arguments named " "Define a function named <name> that takes arguments named "
"arg1 arg2 arg3 (...). Commands listed after function, " "arg1 arg2 arg3 (...). Commands listed after function, but before "
"but before the matching endfunction, are not invoked until the function " "the matching endfunction, are not invoked until the function "
"is invoked. When it is invoked, the commands recorded in the " "is invoked. When it is invoked, the commands recorded in the "
"function are first modified by replacing formal parameters (${arg1}) " "function are first modified by replacing formal parameters (${arg1}) "
"with the arguments passed, and then invoked as normal commands. In " "with the arguments passed, and then invoked as normal commands. In "