summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2022-09-16 08:48:00 +0200
committerGitHub <noreply@github.com>2022-09-16 08:48:00 +0200
commit3276688c825308199e8be6f6e7f9e90822d50643 (patch)
treee388b202b8754e2404b268ee606b89e85f989fe1
parentf24cc8be0379c0764c8baca2d6da67d7e9096937 (diff)
parent6f3bdab0904bd0a7b159ae29c49d103ffe67c315 (diff)
downloadredot-cpp-3276688c825308199e8be6f6e7f9e90822d50643.tar.gz
Merge pull request #844 from Zylann/fix_get_const
Fix issues with `_get` and `_get_property_list`
-rw-r--r--include/godot_cpp/classes/wrapped.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 7881384..62ec0d8 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -125,12 +125,12 @@ protected:
return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, const ::godot::Variant &p_property)) & m_class::_set; \
} \
\
- static bool (::godot::Wrapped::*_get_get())(const ::godot::StringName &p_name, ::godot::Variant &r_ret) { \
- return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, ::godot::Variant &r_ret)) & m_class::_set; \
+ static bool (::godot::Wrapped::*_get_get())(const ::godot::StringName &p_name, ::godot::Variant &r_ret) const { \
+ return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, ::godot::Variant &r_ret) const) & m_class::_get; \
} \
\
- static void (::godot::Wrapped::*_get_get_property_list())(::godot::List<::godot::PropertyInfo> * p_list) { \
- return (void(::godot::Wrapped::*)(::godot::List<::godot::PropertyInfo> * p_list)) & m_class::_get_property_list; \
+ static void (::godot::Wrapped::*_get_get_property_list())(::godot::List<::godot::PropertyInfo> * p_list) const { \
+ return (void(::godot::Wrapped::*)(::godot::List<::godot::PropertyInfo> * p_list) const) & m_class::_get_property_list; \
} \
\
static bool (::godot::Wrapped::*_get_property_can_revert())(const ::godot::StringName &p_name) { \
@@ -334,11 +334,11 @@ protected:
return nullptr; \
} \
\
- static bool (Wrapped::*_get_get())(const StringName &p_name, Variant &r_ret) { \
+ static bool (Wrapped::*_get_get())(const StringName &p_name, Variant &r_ret) const { \
return nullptr; \
} \
\
- static void (Wrapped::*_get_get_property_list())(List<PropertyInfo> * p_list) { \
+ static void (Wrapped::*_get_get_property_list())(List<PropertyInfo> * p_list) const { \
return nullptr; \
} \
\