From 172f450b84bc5f26e86efc9a71b3f5b1ff8e960b Mon Sep 17 00:00:00 2001 From: Lioncache Date: Sat, 6 Dec 2025 17:22:00 -0500 Subject: [PATCH] CArrayProperty: Make Use of defaulted comparisons Same behavior, less code. --- src/Core/Resource/Script/Property/CArrayProperty.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Core/Resource/Script/Property/CArrayProperty.h b/src/Core/Resource/Script/Property/CArrayProperty.h index fca51c36..0319df3e 100644 --- a/src/Core/Resource/Script/Property/CArrayProperty.h +++ b/src/Core/Resource/Script/Property/CArrayProperty.h @@ -9,16 +9,7 @@ struct SScriptArray std::vector Array; SScriptArray() = default; - - bool operator==(const SScriptArray& other) const - { - return Count == other.Count && Array == other.Array; - } - - bool operator!=(const SScriptArray& other) const - { - return !operator==(other); - } + bool operator==(const SScriptArray&) const = default; }; /** You probably shouldn't use this on intrinsic classes; script only */