summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-03 13:57:41 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-03 13:57:41 (GMT)
commit62145a5811f0ba8f65dddd16064f6e9d3e736af3 (patch)
tree486121a3dfafe1d6105f9fed2f97c79817086f70 /Source
parent6b8bb7d7fa4ace80d12f09a988b628a9d9f42105 (diff)
downloadCMake-62145a5811f0ba8f65dddd16064f6e9d3e736af3.zip
CMake-62145a5811f0ba8f65dddd16064f6e9d3e736af3.tar.gz
CMake-62145a5811f0ba8f65dddd16064f6e9d3e736af3.tar.bz2
BUG: cmCTest::GetConfigType should return the string by reference-to-const so that callers may use .c_str() safely.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx2
-rw-r--r--Source/cmCTest.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 3869ea3..de9ddac 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2261,7 +2261,7 @@ std::string cmCTest::GetBinaryDir()
}
//----------------------------------------------------------------------
-std::string cmCTest::GetConfigType()
+std::string const& cmCTest::GetConfigType()
{
return this->ConfigType;
}
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 2a1169a..7dfaa92 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -92,7 +92,7 @@ public:
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; }