BUG: cmCTest::GetConfigType should return the string by reference-to-const so that callers may use .c_str() safely.
This commit is contained in:
parent
6b8bb7d7fa
commit
62145a5811
|
@ -2261,7 +2261,7 @@ std::string cmCTest::GetBinaryDir()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
std::string cmCTest::GetConfigType()
|
std::string const& cmCTest::GetConfigType()
|
||||||
{
|
{
|
||||||
return this->ConfigType;
|
return this->ConfigType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ public:
|
||||||
int TestDirectory(bool memcheck);
|
int TestDirectory(bool memcheck);
|
||||||
|
|
||||||
///! what is the configuraiton type, e.g. Debug, Release etc.
|
///! what is the configuraiton type, e.g. Debug, Release etc.
|
||||||
std::string GetConfigType();
|
std::string const& GetConfigType();
|
||||||
double GetTimeOut() { return this->TimeOut; }
|
double GetTimeOut() { return this->TimeOut; }
|
||||||
void SetTimeOut(double t) { this->TimeOut = t; }
|
void SetTimeOut(double t) { this->TimeOut = t; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue