summaryrefslogtreecommitdiff
path: root/core/object
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-03-31 18:35:56 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-03-31 18:35:56 +0300
commit947d7c83294faf4da808c184c12d65d7f2382796 (patch)
treeec499a7ead00836e7afd8248997940119b1526e1 /core/object
parentc5f9424fbd82d2d8bedb59ebc63e98747781d1ce (diff)
Fix some issues found by clang sanitizers.
Diffstat (limited to 'core/object')
-rw-r--r--core/object/method_bind.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/object/method_bind.h b/core/object/method_bind.h
index 27098571e3..bde6cba199 100644
--- a/core/object/method_bind.h
+++ b/core/object/method_bind.h
@@ -214,7 +214,7 @@ public:
private:
PropertyInfo _gen_return_type_info() const {
- return reinterpret_cast<const Derived *>(this)->_gen_return_type_info_impl();
+ return Derived::_gen_return_type_info_impl();
}
};
@@ -237,7 +237,7 @@ public:
}
private:
- PropertyInfo _gen_return_type_info_impl() const {
+ static PropertyInfo _gen_return_type_info_impl() {
return {};
}
};
@@ -267,7 +267,7 @@ public:
}
private:
- PropertyInfo _gen_return_type_info_impl() const {
+ static PropertyInfo _gen_return_type_info_impl() {
return GetTypeInfo<R>::get_class_info();
}
};