COMP: Fix stl string access
This commit is contained in:
parent
12cc89a8e5
commit
981787c9c5
|
@ -2057,10 +2057,10 @@ std::string cmCTest::GetShortPathToFile(const char* cfname)
|
|||
{
|
||||
const std::string& sourceDir
|
||||
= cmSystemTools::CollapseFullPath(
|
||||
this->GetCTestConfiguration("SourceDirectory"));
|
||||
this->GetCTestConfiguration("SourceDirectory").c_str());
|
||||
const std::string& buildDir
|
||||
= cmSystemTools::CollapseFullPath(
|
||||
this->GetCTestConfiguration("BuildDirectory"));
|
||||
this->GetCTestConfiguration("BuildDirectory").c_str());
|
||||
std::string fname = cmSystemTools::CollapseFullPath(cfname);
|
||||
|
||||
// Find relative paths to both directories
|
||||
|
|
Loading…
Reference in New Issue