summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-12-04 15:43:33 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-12-04 15:43:33 (GMT)
commitab7f11a23941ffe69d6e9de3c3c35e4835424e5f (patch)
treed102466d44443a456aadefb3d935e5641e488a02
parentb786d4f1847859517bb761bdfe7ac12197be749d (diff)
downloadCMake-ab7f11a23941ffe69d6e9de3c3c35e4835424e5f.zip
CMake-ab7f11a23941ffe69d6e9de3c3c35e4835424e5f.tar.gz
CMake-ab7f11a23941ffe69d6e9de3c3c35e4835424e5f.tar.bz2
COMP: fix style and work around old compilers
-rw-r--r--Source/cmFunctionCommand.cxx6
-rw-r--r--Source/cmFunctionCommand.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index a95c04d..ea6163a 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -111,9 +111,9 @@ bool cmFunctionHelperCommand::InvokeInitialPass
// set the values for ARGV0 ARGV1 ...
for (unsigned int t = 0; t < expandedArgs.size(); ++t)
{
- strStream.str("");
- strStream << "ARGV" << t;
- this->Makefile->AddDefinition(strStream.str().c_str(),
+ cmOStringStream tmpStream;
+ tmpStream << "ARGV" << t;
+ this->Makefile->AddDefinition(tmpStream.str().c_str(),
expandedArgs[t].c_str());
}
diff --git a/Source/cmFunctionCommand.h b/Source/cmFunctionCommand.h
index 908a668..36be51f 100644
--- a/Source/cmFunctionCommand.h
+++ b/Source/cmFunctionCommand.h
@@ -91,8 +91,8 @@ public:
" ...\n"
" endfunction(<name>)\n"
"Define a function named <name> that takes arguments named "
- "arg1 arg2 arg3 (...). Commands listed after function, "
- "but before the matching endfunction, are not invoked until the function "
+ "arg1 arg2 arg3 (...). Commands listed after function, but before "
+ "the matching endfunction, are not invoked until the function "
"is invoked. When it is invoked, the commands recorded in the "
"function are first modified by replacing formal parameters (${arg1}) "
"with the arguments passed, and then invoked as normal commands. In "