summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2022-10-23 22:31:57 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2022-11-08 21:44:33 +0100
commitb6ba0dca13c1cda5826f23abf203c2f05c0bee42 (patch)
tree61e66b034c3ecf45dd2fecf46526dde78f0382e4 /include/godot_cpp/classes
parent3b82d5937bd1b4d44cc38cbdbc59ee37a89f07fd (diff)
downloadredot-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.hpp10
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(); \
} \
\