BUG: cmCTest::GetConfigType should return the string by reference-to-const so that callers may use .c_str() safely.

This commit is contained in:
Brad King 2008-02-03 08:57:41 -05:00
parent 6b8bb7d7fa
commit 62145a5811
2 changed files with 2 additions and 2 deletions

View File

@ -2261,7 +2261,7 @@ std::string cmCTest::GetBinaryDir()
}
//----------------------------------------------------------------------
std::string cmCTest::GetConfigType()
std::string const& cmCTest::GetConfigType()
{
return this->ConfigType;
}

View File

@ -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; }