diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-10 15:43:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 15:43:15 +0200 |
commit | 34d74840396853f561964c3f4f6e56ac63a57640 (patch) | |
tree | 7a60acf577ea05294f46242f6b934d6661cf75ee /core/class_db.cpp | |
parent | 8b778f62347e7aff48122aa3945f1373b3fae5d3 (diff) | |
parent | 01cc7a996babc9173a393bf3dae080dc14a277c9 (diff) |
Merge pull request #30455 from qarmin/const_reference
Pass by reference to const
Diffstat (limited to 'core/class_db.cpp')
-rw-r--r-- | core/class_db.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp index 2cbf53ba0b..794d990083 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -1148,7 +1148,7 @@ Variant::Type ClassDB::get_property_type(const StringName &p_class, const String return Variant::NIL; } -StringName ClassDB::get_property_setter(StringName p_class, const StringName p_property) { +StringName ClassDB::get_property_setter(StringName p_class, const StringName &p_property) { ClassInfo *type = classes.getptr(p_class); ClassInfo *check = type; @@ -1165,7 +1165,7 @@ StringName ClassDB::get_property_setter(StringName p_class, const StringName p_p return StringName(); } -StringName ClassDB::get_property_getter(StringName p_class, const StringName p_property) { +StringName ClassDB::get_property_getter(StringName p_class, const StringName &p_property) { ClassInfo *type = classes.getptr(p_class); ClassInfo *check = type; |