summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestHandlerCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-21 19:08:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-10-21 19:08:01 (GMT)
commitae5686f8d0e4f153991d5a7c0cf7406fa7d3468c (patch)
tree7e4833de51d717fbd989acfe7c1ea1a1594f94d6 /Source/CTest/cmCTestHandlerCommand.cxx
parent4f9fcd356b07143a570b39cb5be72d4e3a4e83dc (diff)
parentcc1139cc304b6bd4c8403d437cf08f73e06e243a (diff)
downloadCMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.zip
CMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.tar.gz
CMake-ae5686f8d0e4f153991d5a7c0cf7406fa7d3468c.tar.bz2
Merge topic 'remove-redundant-c_str'
cc1139cc strings: Remove redundant calls to std::string::c_str()
Diffstat (limited to 'Source/CTest/cmCTestHandlerCommand.cxx')
-rw-r--r--Source/CTest/cmCTestHandlerCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestHandlerCommand.cxx b/Source/CTest/cmCTestHandlerCommand.cxx
index 0e29160..5b525dd 100644
--- a/Source/CTest/cmCTestHandlerCommand.cxx
+++ b/Source/CTest/cmCTestHandlerCommand.cxx
@@ -137,7 +137,7 @@ bool cmCTestHandlerCommand
}
std::string current_dir = cmSystemTools::GetCurrentWorkingDirectory();
cmSystemTools::ChangeDirectory(
- this->CTest->GetCTestConfiguration("BuildDirectory").c_str());
+ this->CTest->GetCTestConfiguration("BuildDirectory"));
int res = handler->ProcessHandler();
if ( this->Values[ct_RETURN_VALUE] && *this->Values[ct_RETURN_VALUE])
{
@@ -146,7 +146,7 @@ bool cmCTestHandlerCommand
this->Makefile->AddDefinition(
this->Values[ct_RETURN_VALUE], str.str().c_str());
}
- cmSystemTools::ChangeDirectory(current_dir.c_str());
+ cmSystemTools::ChangeDirectory(current_dir);
return true;
}