Merge pull request #1834 from dsnopek/wrapped-stringname-reference

Take reference in `Wrapped(const StringName &)`
This commit is contained in:
David Snopek
2025-08-21 07:20:12 -05:00
committed by GitHub
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;