summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-16 01:42:59 +0300
committerPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-21 11:23:19 +0300
commit37d9387be37b5ad51b518d5df467b64e88f73350 (patch)
tree91d6c8ff19c59b296bef0166b8a4da6ff6180190 /Source/CTest/cmCTestTestHandler.cxx
parent1cf94375174e7b939148a3ec7e3ae004d511719e (diff)
downloadcmake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.gz
Replace empty-string comparisons with checking against `empty()`.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index f3404a5fde..5896014301 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1596,7 +1596,7 @@ std::string cmCTestTestHandler::FindExecutable(
// wasn't specified
if (fullPath.empty() && filepath.empty()) {
std::string const path = cmSystemTools::FindProgram(filename.c_str());
- if (path != "") {
+ if (!path.empty()) {
resultingConfig.clear();
return path;
}
@@ -1802,7 +1802,7 @@ void cmCTestTestHandler::ExpandTestsToRunInformationForRerunFailed()
if (fileNameSubstring != pattern) {
continue;
}
- if (logName == "") {
+ if (logName.empty()) {
logName = fileName;
} else {
// if multiple matching logs were found we use the most recently