CArrayProperty: Make Use of defaulted comparisons

Same behavior, less code.
This commit is contained in:
Lioncache
2025-12-06 17:22:00 -05:00
parent f093c3d552
commit 172f450b84

View File

@@ -9,16 +9,7 @@ struct SScriptArray
std::vector<char> 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 */