diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-01 10:57:18 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-01 11:33:00 (GMT) |
commit | a693e875db5d0939a316955f513396e533153b6d (patch) | |
tree | e063b89a0bb0d69ce7c3f332d7e03a8efec6421b /Source/cmCTest.cxx | |
parent | 33d9a691306956750bffb10be9d0b17a47c0ec0b (diff) | |
download | CMake-a693e875db5d0939a316955f513396e533153b6d.zip CMake-a693e875db5d0939a316955f513396e533153b6d.tar.gz CMake-a693e875db5d0939a316955f513396e533153b6d.tar.bz2 |
Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 610e9f9..026250d 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1965,7 +1965,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i, if (this->CheckArgument(arg, "-N", "--show-only")) { this->Impl->ShowOnly = true; } - if (cmSystemTools::StringStartsWith(arg.c_str(), "--show-only=")) { + if (cmHasLiteralPrefix(arg, "--show-only=")) { this->Impl->ShowOnly = true; // Check if a specific format is requested. Defaults to human readable @@ -2227,7 +2227,7 @@ int cmCTest::Run(std::vector<std::string>& args, std::string* output) // attempts are simply ignored since previous ctest versions ignore // this too. (As well as many other unknown command line args.) // - if (arg != "-D" && cmSystemTools::StringStartsWith(arg.c_str(), "-D")) { + if (arg != "-D" && cmHasLiteralPrefix(arg, "-D")) { std::string input = arg.substr(2); this->AddVariableDefinition(input); } |