Skip to content

Commit b192b88

Browse files
committed
Take reference in Wrapped(const StringName &)
1 parent fd708f4 commit b192b88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/godot_cpp/classes/wrapped.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Wrapped {
111111

112112
void _postinitialize();
113113

114-
Wrapped(const StringName p_godot_class);
114+
Wrapped(const StringName &p_godot_class);
115115
Wrapped(GodotObject *p_godot_object);
116116
virtual ~Wrapped() {}
117117

src/classes/wrapped.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void Wrapped::_postinitialize() {
6666
}
6767
}
6868

69-
Wrapped::Wrapped(const StringName p_godot_class) {
69+
Wrapped::Wrapped(const StringName &p_godot_class) {
7070
#ifdef HOT_RELOAD_ENABLED
7171
if (unlikely(Wrapped::_constructing_recreate_owner)) {
7272
_owner = Wrapped::_constructing_recreate_owner;

0 commit comments

Comments
 (0)