summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-22 15:32:54 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-26 13:43:46 (GMT)
commit303e81343804d5ef271a3669c1e6cac558055ca1 (patch)
tree84f1be553d209509b1f095619d2e421199c83baa /Source/CTest/cmCTestTestHandler.cxx
parent51565abe7929f4baf5772345dc8d9c62ece9cf7a (diff)
downloadCMake-303e81343804d5ef271a3669c1e6cac558055ca1.zip
CMake-303e81343804d5ef271a3669c1e6cac558055ca1.tar.gz
CMake-303e81343804d5ef271a3669c1e6cac558055ca1.tar.bz2
CTest: Simplify some boolean conditions
Directly compare two boolean values instead of spelling out accepted combinations. Issue: #19610
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 7ae0d26..8430ef4 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -700,8 +700,7 @@ void cmCTestTestHandler::PrintLabelOrSubprojectSummary(bool doSubProject)
}
// if we are doing sub projects and this label is one, then use it
// if we are not doing sub projects and the label is not one use it
- if ((doSubProject && isSubprojectLabel) ||
- (!doSubProject && !isSubprojectLabel)) {
+ if (doSubProject == isSubprojectLabel) {
if (l.size() > maxlen) {
maxlen = l.size();
}