mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 13:15:01 +00:00
CFlagsProperty: Default comparison operators
Same behavior, less code.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user