From 9bcb2f288d8b9b6dcf19ba9abe63c88d3354e85e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Jun 2020 15:37:52 -0400 Subject: [PATCH] CAnimationParameters: Provide operator!= Provides logical symmetry. --- .../Resource/Animation/CAnimationParameters.h | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/Core/Resource/Animation/CAnimationParameters.h b/src/Core/Resource/Animation/CAnimationParameters.h index 77589db6..1d6212be 100644 --- a/src/Core/Resource/Animation/CAnimationParameters.h +++ b/src/Core/Resource/Animation/CAnimationParameters.h @@ -22,7 +22,7 @@ public: explicit CAnimationParameters(IInputStream& rSCLY, EGame Game); CAnimationParameters(const CAnimationParameters&) = default; - CAnimationParameters& operator=(const CAnimationParameters& rkOther) = default; + CAnimationParameters& operator=(const CAnimationParameters&) = default; void Write(IOutputStream& rSCLY); void Serialize(IArchive& rArc); @@ -58,14 +58,18 @@ public: void SetResource(const CAssetID& rkID); void SetUnknown(uint32 Index, uint32 Value); - bool operator==(const CAnimationParameters& rkOther) const + bool operator==(const CAnimationParameters& other) const { - return mGame == rkOther.mGame && - mCharacterID == rkOther.mCharacterID && - mCharIndex == rkOther.mCharIndex && - mAnimIndex == rkOther.mAnimIndex && - mUnknown2 == rkOther.mUnknown2 && - mUnknown3 == rkOther.mUnknown3; + return mGame == other.mGame && + mCharacterID == other.mCharacterID && + mCharIndex == other.mCharIndex && + mAnimIndex == other.mAnimIndex && + mUnknown2 == other.mUnknown2 && + mUnknown3 == other.mUnknown3; + } + bool operator!=(const CAnimationParameters& other) const + { + return !operator==(other); } };