mirror of
https://github.com/godotengine/godot-cpp.git
synced 2025-12-31 01:48:45 +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();
|
||||
|
||||
Wrapped(const StringName p_godot_class);
|
||||
Wrapped(const StringName &p_godot_class);
|
||||
Wrapped(GodotObject *p_godot_object);
|
||||
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
|
||||
if (unlikely(Wrapped::_constructing_recreate_owner)) {
|
||||
_owner = Wrapped::_constructing_recreate_owner;
|
||||
|
||||
Reference in New Issue
Block a user