CFlagsProperty: Default comparison operators

Same behavior, less code.
This commit is contained in:
Lioncache
2025-12-06 17:36:02 -05:00
parent 5d35a14538
commit 335816af03

View File

@@ -17,15 +17,7 @@ class CFlagsProperty : public TSerializeableTypedProperty<uint32, EPropertyType:
: Name(rkInName), Mask(InMask)
{}
bool operator==(const SBitFlag& other) const
{
return Name == other.Name && Mask == other.Mask;
}
bool operator!=(const SBitFlag& other) const
{
return !operator==(other);
}
bool operator==(const SBitFlag&) const = default;
void Serialize(IArchive& rArc)
{