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
|
const std::string& sourceDir
|
||||||
= cmSystemTools::CollapseFullPath(
|
= cmSystemTools::CollapseFullPath(
|
||||||
this->GetCTestConfiguration("SourceDirectory"));
|
this->GetCTestConfiguration("SourceDirectory").c_str());
|
||||||
const std::string& buildDir
|
const std::string& buildDir
|
||||||
= cmSystemTools::CollapseFullPath(
|
= cmSystemTools::CollapseFullPath(
|
||||||
this->GetCTestConfiguration("BuildDirectory"));
|
this->GetCTestConfiguration("BuildDirectory").c_str());
|
||||||
std::string fname = cmSystemTools::CollapseFullPath(cfname);
|
std::string fname = cmSystemTools::CollapseFullPath(cfname);
|
||||||
|
|
||||||
// Find relative paths to both directories
|
// Find relative paths to both directories
|
||||||
|
|
Loading…
Reference in New Issue