[cmake-commits] martink committed cmFunctionCommand.cxx 1.1 1.2 cmFunctionCommand.h 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 4 10:43:35 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv20309/Source

Modified Files:
	cmFunctionCommand.cxx cmFunctionCommand.h 
Log Message:
COMP: fix style and work around old compilers


Index: cmFunctionCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFunctionCommand.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cmFunctionCommand.h	3 Dec 2007 17:43:52 -0000	1.1
+++ cmFunctionCommand.h	4 Dec 2007 15:43:33 -0000	1.2
@@ -91,8 +91,8 @@
       "    ...\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 "

Index: cmFunctionCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFunctionCommand.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cmFunctionCommand.cxx	3 Dec 2007 17:43:52 -0000	1.1
+++ cmFunctionCommand.cxx	4 Dec 2007 15:43:32 -0000	1.2
@@ -111,9 +111,9 @@
   // 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());
     }
   



More information about the Cmake-commits mailing list