COMP: Fix stl string access

This commit is contained in:
Andy Cedilnik 2006-07-11 16:08:34 -04:00
parent 12cc89a8e5
commit 981787c9c5
1 changed files with 2 additions and 2 deletions

View File

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