File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
include/godot_cpp/classes Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ class Wrapped {
94
94
virtual ~Wrapped () {}
95
95
96
96
public:
97
- static StringName &get_class_static () {
98
- static StringName string_name = StringName (" Wrapped" );
97
+ static const StringName &get_class_static () {
98
+ static const StringName string_name = StringName (" Wrapped" );
99
99
return string_name;
100
100
}
101
101
@@ -208,12 +208,12 @@ public:
208
208
initialized = true ; \
209
209
} \
210
210
\
211
- static ::godot::StringName &get_class_static () { \
212
- static ::godot::StringName string_name = ::godot::StringName (#m_class); \
211
+ static const ::godot::StringName &get_class_static () { \
212
+ static const ::godot::StringName string_name = ::godot::StringName (#m_class); \
213
213
return string_name; \
214
214
} \
215
215
\
216
- static ::godot::StringName &get_parent_class_static () { \
216
+ static const ::godot::StringName &get_parent_class_static () { \
217
217
return m_inherits::get_class_static (); \
218
218
} \
219
219
\
@@ -418,12 +418,12 @@ public:
418
418
\
419
419
static void initialize_class () {} \
420
420
\
421
- static ::godot::StringName &get_class_static () { \
422
- static ::godot::StringName string_name = ::godot::StringName (#m_alias_for); \
421
+ static const ::godot::StringName &get_class_static () { \
422
+ static const ::godot::StringName string_name = ::godot::StringName (#m_alias_for); \
423
423
return string_name; \
424
424
} \
425
425
\
426
- static ::godot::StringName &get_parent_class_static () { \
426
+ static const ::godot::StringName &get_parent_class_static () { \
427
427
return m_inherits::get_class_static (); \
428
428
} \
429
429
\
You can’t perform that action at this time.
0 commit comments