mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-03 18:09:13 +03:00
Merge pull request #1834 from dsnopek/wrapped-stringname-reference
Take reference in `Wrapped(const StringName &)`
This commit is contained in:
@@ -111,7 +111,7 @@ protected:
|
|||||||
|
|
||||||
void _postinitialize();
|
void _postinitialize();
|
||||||
|
|
||||||
Wrapped(const StringName p_godot_class);
|
Wrapped(const StringName &p_godot_class);
|
||||||
Wrapped(GodotObject *p_godot_object);
|
Wrapped(GodotObject *p_godot_object);
|
||||||
virtual ~Wrapped() {}
|
virtual ~Wrapped() {}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
#ifdef HOT_RELOAD_ENABLED
|
||||||
if (unlikely(Wrapped::_constructing_recreate_owner)) {
|
if (unlikely(Wrapped::_constructing_recreate_owner)) {
|
||||||
_owner = Wrapped::_constructing_recreate_owner;
|
_owner = Wrapped::_constructing_recreate_owner;
|
||||||
|
|||||||
Reference in New Issue
Block a user