summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-09 11:59:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-09 12:00:03 (GMT)
commit75844dd6092418ba4353352dfc172d5f5588a553 (patch)
treeff62edccfba19c8513170dca39b981f7a8aa6e24 /Source/CTest/cmCTestBuildHandler.cxx
parent34334c098f85004242f109857193f5f8cdce697d (diff)
parent69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f (diff)
downloadCMake-75844dd6092418ba4353352dfc172d5f5588a553.zip
CMake-75844dd6092418ba4353352dfc172d5f5588a553.tar.gz
CMake-75844dd6092418ba4353352dfc172d5f5588a553.tar.bz2
Merge topic 'cleanup-find-cstr'
69ca85cc7f Remove unnecessary c_str() in RegularExpression::find calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2271
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 65844bd..3f6654b 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