Take reference in Wrapped(const StringName &)

(cherry picked from commit b192b880d3)
This commit is contained in:
David Snopek
2025-08-20 11:13:28 -05:00
parent cf79eb39da
commit b842dc9696
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ protected:
void _postinitialize();
Wrapped(const StringName p_godot_class);
Wrapped(const StringName &p_godot_class);
Wrapped(GodotObject *p_godot_object);
virtual ~Wrapped() {}

View File

@@ -66,7 +66,7 @@ void Wrapped::_postinitialize() {
}
}
Wrapped::Wrapped(const StringName p_godot_class) {
Wrapped::Wrapped(const StringName &p_godot_class) {
#ifdef HOT_RELOAD_ENABLED
if (unlikely(Wrapped::_constructing_recreate_owner)) {
_owner = Wrapped::_constructing_recreate_owner;