diff options
author | vvs31415 <vvs31415@users.noreply.github.com> | 2021-03-13 12:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-03-13 12:36:07 (GMT) |
commit | 12624ebd7ee1380b5e5aa0bc3bcbb03c4d9aec73 (patch) | |
tree | 58a7df28ea4ebc050db603ebd3bca79ca5aeb77c /Source/cmCTest.cxx | |
parent | 982f7bb5063453d3c0be102c917bb660ec21978b (diff) | |
download | CMake-12624ebd7ee1380b5e5aa0bc3bcbb03c4d9aec73.zip CMake-12624ebd7ee1380b5e5aa0bc3bcbb03c4d9aec73.tar.gz CMake-12624ebd7ee1380b5e5aa0bc3bcbb03c4d9aec73.tar.bz2 |
Source: Reduce c_str() usage
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 620ba19..77b4441 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2221,7 +2221,7 @@ void cmCTest::HandleScriptArguments(size_t& i, std::vector<std::string>& args, cmCTestScriptHandler* ch = this->GetScriptHandler(); // -SR is an internal argument, -SP should be ignored when it is passed if (!SRArgumentSpecified) { - ch->AddConfigurationScript(args[i].c_str(), false); + ch->AddConfigurationScript(args[i], false); } } @@ -2231,7 +2231,7 @@ void cmCTest::HandleScriptArguments(size_t& i, std::vector<std::string>& args, this->Impl->RunConfigurationScript = true; i++; cmCTestScriptHandler* ch = this->GetScriptHandler(); - ch->AddConfigurationScript(args[i].c_str(), true); + ch->AddConfigurationScript(args[i], true); } if (this->CheckArgument(arg, "-S"_s, "--script") && i < args.size() - 1) { @@ -2240,7 +2240,7 @@ void cmCTest::HandleScriptArguments(size_t& i, std::vector<std::string>& args, cmCTestScriptHandler* ch = this->GetScriptHandler(); // -SR is an internal argument, -S should be ignored when it is passed if (!SRArgumentSpecified) { - ch->AddConfigurationScript(args[i].c_str(), true); + ch->AddConfigurationScript(args[i], true); } } } |