mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
CArrayProperty: Make Use of defaulted comparisons
Same behavior, less code.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user