diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-31 23:01:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-05 19:12:57 (GMT) |
commit | 6f16be6a6265ee19bd8193da8a7a0d111717ee80 (patch) | |
tree | 3c4cf88923ac34587e5abe2d2f701c7572cc599c /Source/cmCTest.cxx | |
parent | 612975c6652c83c29fcfcf56a7b5a0cfe0218c93 (diff) | |
download | CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.zip CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.gz CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.bz2 |
Remove unnecessary c_str() calls
Use the new IsOn(),IsOff() overloads.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 3d3d526..e847bae 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -292,8 +292,7 @@ cmCTest::cmCTest() this->RepeatUntilFail = false; std::string outOnFail; if (cmSystemTools::GetEnv("CTEST_OUTPUT_ON_FAILURE", outOnFail)) { - this->OutputTestOutputOnTestFailure = - !cmSystemTools::IsOff(outOnFail.c_str()); + this->OutputTestOutputOnTestFailure = !cmSystemTools::IsOff(outOnFail); } this->InitStreams(); @@ -747,8 +746,8 @@ bool cmCTest::UpdateCTestConfiguration() } } if (this->ProduceXML) { - this->CompressXMLFiles = cmSystemTools::IsOn( - this->GetCTestConfiguration("CompressSubmission").c_str()); + this->CompressXMLFiles = + cmSystemTools::IsOn(this->GetCTestConfiguration("CompressSubmission")); } return true; } @@ -1936,7 +1935,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i, if (this->CheckArgument(arg, "--interactive-debug-mode") && i < args.size() - 1) { i++; - this->InteractiveDebugMode = cmSystemTools::IsOn(args[i].c_str()); + this->InteractiveDebugMode = cmSystemTools::IsOn(args[i]); } if (this->CheckArgument(arg, "--submit-index") && i < args.size() - 1) { i++; |