Commit 62145a58 authored by Brad King's avatar Brad King
Browse files

BUG: cmCTest::GetConfigType should return the string by reference-to-const so...

BUG: cmCTest::GetConfigType should return the string by reference-to-const so that callers may use .c_str() safely.
parent 6b8bb7d7
......@@ -2261,7 +2261,7 @@ std::string cmCTest::GetBinaryDir()
}
//----------------------------------------------------------------------
std::string cmCTest::GetConfigType()
std::string const& cmCTest::GetConfigType()
{
return this->ConfigType;
}
......
......@@ -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; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment