mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
CLink: Simplify comparison operator
This commit is contained in:
@@ -142,19 +142,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Operators
|
// Operators
|
||||||
bool operator==(const CLink& rkOther) const
|
bool operator==(const CLink&) const = default;
|
||||||
{
|
|
||||||
return (mpArea == rkOther.mpArea) &&
|
|
||||||
(mStateID == rkOther.mStateID) &&
|
|
||||||
(mMessageID == rkOther.mMessageID) &&
|
|
||||||
(mSenderID == rkOther.mSenderID) &&
|
|
||||||
(mReceiverID == rkOther.mReceiverID);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator!=(const CLink& rkOther) const
|
|
||||||
{
|
|
||||||
return (!(*this == rkOther));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
CGameArea* Area() const { return mpArea; }
|
CGameArea* Area() const { return mpArea; }
|
||||||
|
|||||||
Reference in New Issue
Block a user