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
|
||||
bool operator==(const CLink& rkOther) const
|
||||
{
|
||||
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));
|
||||
}
|
||||
bool operator==(const CLink&) const = default;
|
||||
|
||||
// Accessors
|
||||
CGameArea* Area() const { return mpArea; }
|
||||
|
||||
Reference in New Issue
Block a user