Since C++20 we no longer need operator!=.
This commit is contained in:
parent
be5b6d5b1f
commit
f353b02530
|
@ -89,8 +89,10 @@ auto VPTransformationOrigon::operator==(const VPTransformationOrigon &origin) co
|
||||||
return this->origin == origin.origin && custom == origin.custom;
|
return this->origin == origin.origin && custom == origin.custom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __cplusplus < 202002L
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VPTransformationOrigon::operator!=(const VPTransformationOrigon &origin) const -> bool
|
auto VPTransformationOrigon::operator!=(const VPTransformationOrigon &origin) const -> bool
|
||||||
{
|
{
|
||||||
return !VPTransformationOrigon::operator==(origin);
|
return !VPTransformationOrigon::operator==(origin);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -59,7 +59,10 @@ struct VPTransformationOrigon
|
||||||
bool custom{false}; // NOLINT(misc-non-private-member-variables-in-classes)
|
bool custom{false}; // NOLINT(misc-non-private-member-variables-in-classes)
|
||||||
|
|
||||||
auto operator==(const VPTransformationOrigon &origin) const -> bool;
|
auto operator==(const VPTransformationOrigon &origin) const -> bool;
|
||||||
|
|
||||||
|
#if __cplusplus < 202002L
|
||||||
auto operator!=(const VPTransformationOrigon &origin) const -> bool;
|
auto operator!=(const VPTransformationOrigon &origin) const -> bool;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LAYOUTDEF_H
|
#endif // LAYOUTDEF_H
|
||||||
|
|
|
@ -87,11 +87,13 @@ auto VFormula::operator==(const VFormula &formula) const -> bool
|
||||||
d->error == formula.error() && VFuzzyComparePossibleNulls(d->dValue, formula.getDoubleValue());
|
d->error == formula.error() && VFuzzyComparePossibleNulls(d->dValue, formula.getDoubleValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __cplusplus < 202002L
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VFormula::operator!=(const VFormula &formula) const -> bool
|
auto VFormula::operator!=(const VFormula &formula) const -> bool
|
||||||
{
|
{
|
||||||
return !VFormula::operator==(formula);
|
return !VFormula::operator==(formula);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VFormula::GetFormula(FormulaType type) const -> QString
|
auto VFormula::GetFormula(FormulaType type) const -> QString
|
||||||
|
|
|
@ -59,7 +59,10 @@ public:
|
||||||
~VFormula();
|
~VFormula();
|
||||||
|
|
||||||
auto operator==(const VFormula &formula) const -> bool;
|
auto operator==(const VFormula &formula) const -> bool;
|
||||||
|
|
||||||
|
#if __cplusplus < 202002L
|
||||||
auto operator!=(const VFormula &formula) const -> bool;
|
auto operator!=(const VFormula &formula) const -> bool;
|
||||||
|
#endif
|
||||||
|
|
||||||
auto GetFormula(FormulaType type = FormulaType::ToUser) const -> QString;
|
auto GetFormula(FormulaType type = FormulaType::ToUser) const -> QString;
|
||||||
void SetFormula(const QString &value, FormulaType type = FormulaType::FromSystem);
|
void SetFormula(const QString &value, FormulaType type = FormulaType::FromSystem);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user