mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 13:37:43 +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)
|
: Name(rkInName), Mask(InMask)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
bool operator==(const SBitFlag& other) const
|
bool operator==(const SBitFlag&) const = default;
|
||||||
{
|
|
||||||
return Name == other.Name && Mask == other.Mask;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator!=(const SBitFlag& other) const
|
|
||||||
{
|
|
||||||
return !operator==(other);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Serialize(IArchive& rArc)
|
void Serialize(IArchive& rArc)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user