summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 17:19:29 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-26 06:59:56 (GMT)
commitba8571ff2deb3a29bb980e109abef0e7290de56a (patch)
tree4c43de0a1a78472e35ba6cac1259b62087080dcd /Source/CTest
parent8985c1dfd79804d6318e6dae6e47597a7b71dcd4 (diff)
downloadCMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.zip
CMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.tar.gz
CMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.tar.bz2
clang-tidy: use operators for string comparison
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 167fecf..c5a4faa 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1727,7 +1727,7 @@ void cmCTestTestHandler::ExpandTestsToRunInformationForRerunFailed()
// bcc crashes if we attempt a normal substring comparison,
// hence the following workaround
std::string fileNameSubstring = fileName.substr(0, pattern.length());
- if (fileNameSubstring.compare(pattern) != 0) {
+ if (fileNameSubstring != pattern) {
continue;
}
if (logName == "") {