diff options
| author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-10-23 14:39:16 +0200 |
|---|---|---|
| committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-11-08 21:44:32 +0100 |
| commit | d1963dc133d3fdc8f6ab90d47a87158dac7ebd2a (patch) | |
| tree | 18857cb5ec7bd5721285f0d2043af23ccec1b929 /include | |
| parent | a706a9ceb91116aa20895df3b422c164378dc353 (diff) | |
| download | redot-cpp-d1963dc133d3fdc8f6ab90d47a87158dac7ebd2a.tar.gz | |
Correct __constant_get_bitfield_name with StringName
Diffstat (limited to 'include')
| -rw-r--r-- | include/godot_cpp/core/type_info.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/core/type_info.hpp b/include/godot_cpp/core/type_info.hpp index a2abe44..4c3f1bf 100644 --- a/include/godot_cpp/core/type_info.hpp +++ b/include/godot_cpp/core/type_info.hpp @@ -278,7 +278,7 @@ public: TEMPL_MAKE_BITFIELD_TYPE_INFO(m_class, m_enum, const m_enum &) template <typename T> -inline const char *__constant_get_bitfield_name(T param, const char *p_constant) { +inline StringName __constant_get_bitfield_name(T param, StringName p_constant) { if (GetTypeInfo<T>::VARIANT_TYPE == Variant::NIL) { ERR_PRINT(("Missing VARIANT_ENUM_CAST for constant's bitfield: " + String(p_constant)).utf8().get_data()); } |
