[cmake-commits] king committed cmCTest.cxx 1.333 1.334 cmCTest.h 1.99 1.100

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Feb 3 08:57:43 EST 2008


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

Modified Files:
	cmCTest.cxx cmCTest.h 
Log Message:
BUG: cmCTest::GetConfigType should return the string by reference-to-const so that callers may use .c_str() safely.


Index: cmCTest.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.h,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- cmCTest.h	13 Dec 2007 22:56:49 -0000	1.99
+++ cmCTest.h	3 Feb 2008 13:57:41 -0000	1.100
@@ -92,7 +92,7 @@
   int TestDirectory(bool memcheck);
 
   ///! what is the configuraiton type, e.g. Debug, Release etc.
-  std::string GetConfigType();
+  std::string const& GetConfigType();
   double GetTimeOut() { return this->TimeOut; }
   void SetTimeOut(double t) { this->TimeOut = t; }
 

Index: cmCTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCTest.cxx,v
retrieving revision 1.333
retrieving revision 1.334
diff -u -d -r1.333 -r1.334
--- cmCTest.cxx	31 Jan 2008 21:10:32 -0000	1.333
+++ cmCTest.cxx	3 Feb 2008 13:57:41 -0000	1.334
@@ -2261,7 +2261,7 @@
 }
 
 //----------------------------------------------------------------------
-std::string cmCTest::GetConfigType()
+std::string const& cmCTest::GetConfigType()
 {
   return this->ConfigType;
 }



More information about the Cmake-commits mailing list