diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-07 15:27:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-07 19:28:24 (GMT) |
commit | 69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f (patch) | |
tree | f323fcadf3c4e11227a0eea006ae7bfa17e8d26c /Source/CTest/cmCTestTestHandler.cxx | |
parent | d7a52f8c24a29ff7f64b00566b646f2d125d4ac0 (diff) | |
download | CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.zip CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.gz CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.bz2 |
Remove unnecessary c_str() in RegularExpression::find calls
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 91b92a3..d1d8d08 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -2310,7 +2310,7 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args) this->Quiet); if (this->UseExcludeRegExpFlag && this->UseExcludeRegExpFirst && - this->ExcludeTestsRegularExpression.find(testname.c_str())) { + this->ExcludeTestsRegularExpression.find(testname)) { return true; } if (this->MemCheck) { @@ -2365,10 +2365,10 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args) test.SkipReturnCode = -1; test.PreviousRuns = 0; if (this->UseIncludeRegExpFlag && - !this->IncludeTestsRegularExpression.find(testname.c_str())) { + !this->IncludeTestsRegularExpression.find(testname)) { test.IsInBasedOnREOptions = false; } else if (this->UseExcludeRegExpFlag && !this->UseExcludeRegExpFirst && - this->ExcludeTestsRegularExpression.find(testname.c_str())) { + this->ExcludeTestsRegularExpression.find(testname)) { test.IsInBasedOnREOptions = false; } this->TestList.push_back(test); |