summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 16:22:30 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:37:11 (GMT)
commit8e2a03c07833f8715a498ee11d32f3345985c163 (patch)
tree63c701ee5fb93ae4801f48da3e9a601576f78c8e /Source/cmakemain.cxx
parent9ae6569bfe0d1e68761e8f55b5ea9e905cc0369f (diff)
downloadCMake-8e2a03c07833f8715a498ee11d32f3345985c163.zip
CMake-8e2a03c07833f8715a498ee11d32f3345985c163.tar.gz
CMake-8e2a03c07833f8715a498ee11d32f3345985c163.tar.bz2
ctest.cxx: Eliminate redundand trenary operator
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index c082b67..3f1fe6c 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -227,7 +227,7 @@ int do_cmake(int ac, char const* const* av)
doc.AppendSection("Generators", generators);
doc.PrependSection("Options", cmDocumentationOptions);
- return doc.PrintRequestedDocumentation(std::cout) ? 0 : 1;
+ return !doc.PrintRequestedDocumentation(std::cout);
}
#else
if (ac == 1) {