summaryrefslogtreecommitdiffstats
path: root/Source/CPack/IFW/cmCPackIFWCommon.cxx
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2021-10-21 20:47:39 (GMT)
committerRose <83477269+AtariDreams@users.noreply.github.com>2021-10-23 15:30:27 (GMT)
commitdd918c517dc32002f44e74b0cdc6fb32cd7bee34 (patch)
treefba67b4be872eca2a515046b2e7aa12f2d3b1957 /Source/CPack/IFW/cmCPackIFWCommon.cxx
parent46bd57d2450e450da4f46f5cb45cb8d1dc617d96 (diff)
downloadCMake-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.cxx9
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