Fix `StringName` comparison

(cherry picked from commit d2ddd8b228)
This commit is contained in:
Ninni Pipping 2023-05-18 13:25:40 +02:00 committed by Yuri Sizov
parent 4ba4ed6528
commit dce1b9ce14
1 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,15 @@ public:
_FORCE_INLINE_ bool operator<(const StringName &p_name) const { _FORCE_INLINE_ bool operator<(const StringName &p_name) const {
return _data < p_name._data; return _data < p_name._data;
} }
_FORCE_INLINE_ bool operator<=(const StringName &p_name) const {
return _data <= p_name._data;
}
_FORCE_INLINE_ bool operator>(const StringName &p_name) const {
return _data > p_name._data;
}
_FORCE_INLINE_ bool operator>=(const StringName &p_name) const {
return _data >= p_name._data;
}
_FORCE_INLINE_ bool operator==(const StringName &p_name) const { _FORCE_INLINE_ bool operator==(const StringName &p_name) const {
// the real magic of all this mess happens here. // the real magic of all this mess happens here.
// this is why path comparisons are very fast // this is why path comparisons are very fast