summaryrefslogtreecommitdiff
path: root/core/object/method_bind.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-31 18:47:49 +0200
committerGitHub <noreply@github.com>2022-03-31 18:47:49 +0200
commit1ed978574eb6623d3410b14198a5af8ad50683ed (patch)
treea1c71a074222a5d333504a7edc85da05b8948b0b /core/object/method_bind.h
parent3aa32ef4b0f031b8541d00fc41b0c295fbd71f3d (diff)
parent947d7c83294faf4da808c184c12d65d7f2382796 (diff)
Merge pull request #59747 from bruvzg/clang_san_fixes
Diffstat (limited to 'core/object/method_bind.h')
-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();
}
};