mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 06:27:45 +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;
|
std::vector<char> Array;
|
||||||
|
|
||||||
SScriptArray() = default;
|
SScriptArray() = default;
|
||||||
|
bool operator==(const SScriptArray&) const = default;
|
||||||
bool operator==(const SScriptArray& other) const
|
|
||||||
{
|
|
||||||
return Count == other.Count && Array == other.Array;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator!=(const SScriptArray& other) const
|
|
||||||
{
|
|
||||||
return !operator==(other);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** You probably shouldn't use this on intrinsic classes; script only */
|
/** You probably shouldn't use this on intrinsic classes; script only */
|
||||||
|
|||||||
Reference in New Issue
Block a user