diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-04 02:20:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:30 (GMT) |
commit | 83a5e453f8c0dc0fc9b6bdee9723478aafefd0da (patch) | |
tree | 787734e3c75d2a75cafbb054195473c24582e03e /Source/cmCTest.cxx | |
parent | b26c70cc9a59de5b8ece8b00b67d571aaf6ee8f0 (diff) | |
download | CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.zip CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.gz CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.bz2 |
stringapi: Use strings for test names
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 39b623d..72bb7fd 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2126,7 +2126,7 @@ void cmCTest::HandleCommandLineArguments(size_t &i, if(this->CheckArgument(arg, "--overwrite") && i < args.size() - 1) { i++; - this->AddCTestConfigurationOverwrite(args[i].c_str()); + this->AddCTestConfigurationOverwrite(args[i]); } if(this->CheckArgument(arg, "-A", "--add-notes") && i < args.size() - 1) { @@ -2840,9 +2840,8 @@ void cmCTest::AddSubmitFile(Part part, const char* name) } //---------------------------------------------------------------------- -void cmCTest::AddCTestConfigurationOverwrite(const char* encstr) +void cmCTest::AddCTestConfigurationOverwrite(const std::string& overStr) { - std::string overStr = encstr; size_t epos = overStr.find("="); if ( epos == overStr.npos ) { |