diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2021-10-21 20:47:39 (GMT) |
---|---|---|
committer | Rose <83477269+AtariDreams@users.noreply.github.com> | 2021-10-23 15:30:27 (GMT) |
commit | dd918c517dc32002f44e74b0cdc6fb32cd7bee34 (patch) | |
tree | fba67b4be872eca2a515046b2e7aa12f2d3b1957 /Source/CPack/IFW/cmCPackIFWCommon.cxx | |
parent | 46bd57d2450e450da4f46f5cb45cb8d1dc617d96 (diff) | |
download | CMake-dd918c517dc32002f44e74b0cdc6fb32cd7bee34.zip CMake-dd918c517dc32002f44e74b0cdc6fb32cd7bee34.tar.gz CMake-dd918c517dc32002f44e74b0cdc6fb32cd7bee34.tar.bz2 |
Source: Simplify some boolean expressions
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWCommon.cxx')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWCommon.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWCommon.cxx b/Source/CPack/IFW/cmCPackIFWCommon.cxx index f6b8a8a..5d995c3 100644 --- a/Source/CPack/IFW/cmCPackIFWCommon.cxx +++ b/Source/CPack/IFW/cmCPackIFWCommon.cxx @@ -29,19 +29,18 @@ cmValue cmCPackIFWCommon::GetOption(const std::string& op) const bool cmCPackIFWCommon::IsOn(const std::string& op) const { - return this->Generator ? this->Generator->cmCPackGenerator::IsOn(op) : false; + return this->Generator && this->Generator->cmCPackGenerator::IsOn(op); } bool cmCPackIFWCommon::IsSetToOff(const std::string& op) const { - return this->Generator ? this->Generator->cmCPackGenerator::IsSetToOff(op) - : false; + return this->Generator && this->Generator->cmCPackGenerator::IsSetToOff(op); } bool cmCPackIFWCommon::IsSetToEmpty(const std::string& op) const { - return this->Generator ? this->Generator->cmCPackGenerator::IsSetToEmpty(op) - : false; + return this->Generator && + this->Generator->cmCPackGenerator::IsSetToEmpty(op); } bool cmCPackIFWCommon::IsVersionLess(const char* version) const |