From e79be6ce07ed8c89011f759ecade070a3bd5a806 Mon Sep 17 00:00:00 2001 From: rune-scape Date: Mon, 5 Dec 2022 21:46:47 -0500 Subject: Unify String and StringName --- core/variant/variant.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/variant/variant.h') diff --git a/core/variant/variant.h b/core/variant/variant.h index c5be609184..f7221e206f 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -797,6 +797,10 @@ struct VariantComparator { static _FORCE_INLINE_ bool compare(const Variant &p_lhs, const Variant &p_rhs) { return p_lhs.hash_compare(p_rhs); } }; +struct StringLikeVariantComparator { + static bool compare(const Variant &p_lhs, const Variant &p_rhs); +}; + Variant::ObjData &Variant::_get_obj() { return *reinterpret_cast(&_data._mem[0]); } -- cgit v1.2.3