summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildHandler.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-07 15:27:20 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-07 19:28:24 (GMT)
commit69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f (patch)
treef323fcadf3c4e11227a0eea006ae7bfa17e8d26c /Source/CTest/cmCTestBuildHandler.cxx
parentd7a52f8c24a29ff7f64b00566b646f2d125d4ac0 (diff)
downloadCMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.zip
CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.gz
CMake-69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f.tar.bz2
Remove unnecessary c_str() in RegularExpression::find calls
Diffstat (limited to 'Source/CTest/cmCTestBuildHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index 8527d54..74af85c 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -589,7 +589,7 @@ void cmCTestBuildHandler::GenerateXMLLogScraped(cmXMLWriter& xml)
for (cmCTestCompileErrorWarningRex& rit :
this->ErrorWarningFileLineRegex) {
cmsys::RegularExpression* re = &rit.RegularExpression;
- if (re->find(cm->Text.c_str())) {
+ if (re->find(cm->Text)) {
cm->SourceFile = re->match(rit.FileIndex);
// At this point we need to make this->SourceFile relative to
// the source root of the project, so cvs links will work