Source: Simplify some boolean expressions

This commit is contained in:
Rose
2021-10-21 16:47:39 -04:00
parent 46bd57d245
commit dd918c517d
4 changed files with 11 additions and 12 deletions
+4 -5
View File
@@ -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