diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 20:52:22 (GMT) |
commit | 1b2bb93302116a4791cf82e9cce028dfe87ef55d (patch) | |
tree | b20aead9b34d9bdba3243439dd8f0aed032727e2 /Source/CTest/cmCTestRunTest.cxx | |
parent | acd8a73044e879286f0cfa24b54497a8307f204b (diff) | |
download | CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.zip CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.tar.gz CMake-1b2bb93302116a4791cf82e9cce028dfe87ef55d.tar.bz2 |
Remove redundant c_str() calls.
Run clang-tidy's readability-redundant-string-cstr checker.
Ignore findings in kwsys.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index 59383af..9dda865 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -424,7 +424,7 @@ bool cmCTestRunTest::StartTest(size_t total) this->TestResult.Status = cmCTestTestHandler::BAD_COMMAND; this->TestResult.TestCount = this->TestProperties->Index; this->TestResult.Name = this->TestProperties->Name; - this->TestResult.Path = this->TestProperties->Directory.c_str(); + this->TestResult.Path = this->TestProperties->Directory; if (args.size() >= 2 && args[1] == "NOT_AVAILABLE") { this->TestProcess = new cmProcess; @@ -502,7 +502,7 @@ void cmCTestRunTest::ComputeArguments() if (this->TestHandler->MemCheck) { cmCTestMemCheckHandler* handler = static_cast<cmCTestMemCheckHandler*>(this->TestHandler); - this->ActualCommand = handler->MemoryTester.c_str(); + this->ActualCommand = handler->MemoryTester; this->TestProperties->Args[1] = this->TestHandler->FindTheExecutable( this->TestProperties->Args[1].c_str()); } else { |