diff options
| author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-10-23 22:31:57 +0200 |
|---|---|---|
| committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-11-08 21:44:33 +0100 |
| commit | b6ba0dca13c1cda5826f23abf203c2f05c0bee42 (patch) | |
| tree | 61e66b034c3ecf45dd2fecf46526dde78f0382e4 /include/godot_cpp/classes | |
| parent | 3b82d5937bd1b4d44cc38cbdbc59ee37a89f07fd (diff) | |
| download | redot-cpp-b6ba0dca13c1cda5826f23abf203c2f05c0bee42.tar.gz | |
StringName is working fine with demo \o/
Diffstat (limited to 'include/godot_cpp/classes')
| -rw-r--r-- | include/godot_cpp/classes/wrapped.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index 5208e4e..1dfa5a2 100644 --- a/include/godot_cpp/classes/wrapped.hpp +++ b/include/godot_cpp/classes/wrapped.hpp @@ -78,7 +78,7 @@ protected: Wrapped(GodotObject *p_godot_object); public: - static StringName get_class_static() { + static StringName &get_class_static() { static StringName string_name = StringName("Wrapped"); return string_name; } @@ -159,12 +159,12 @@ public: initialized = true; \ } \ \ - static StringName get_class_static() { \ + static StringName &get_class_static() { \ static StringName string_name = StringName(#m_class); \ return string_name; \ } \ \ - static StringName get_parent_class_static() { \ + static StringName &get_parent_class_static() { \ return m_inherits::get_class_static(); \ } \ \ @@ -349,12 +349,12 @@ protected: public: \ static void initialize_class() {} \ \ - static StringName get_class_static() { \ + static StringName &get_class_static() { \ static StringName string_name = StringName(#m_class); \ return string_name; \ } \ \ - static StringName get_parent_class_static() { \ + static StringName &get_parent_class_static() { \ return m_inherits::get_class_static(); \ } \ \ |
