summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/builtin_ptrcall.hpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-03-10 16:02:43 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-03-10 16:02:43 -0500
commit87f5fb06912d19b3ff3ba80b747fcea3023a1ed5 (patch)
treec081d3e0b7703194c8162125ee7b138bb2c557d3 /include/godot_cpp/core/builtin_ptrcall.hpp
parentcc1217a43cab5ff8377c2f5e53301fda67def95e (diff)
downloadredot-cpp-87f5fb06912d19b3ff3ba80b747fcea3023a1ed5.tar.gz
Enforce template syntax `typename` over `class`
Diffstat (limited to 'include/godot_cpp/core/builtin_ptrcall.hpp')
-rw-r--r--include/godot_cpp/core/builtin_ptrcall.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/godot_cpp/core/builtin_ptrcall.hpp b/include/godot_cpp/core/builtin_ptrcall.hpp
index 19250d8..286051f 100644
--- a/include/godot_cpp/core/builtin_ptrcall.hpp
+++ b/include/godot_cpp/core/builtin_ptrcall.hpp
@@ -40,7 +40,7 @@ namespace godot {
namespace internal {
-template <class O, class... Args>
+template <typename O, typename... Args>
O *_call_builtin_method_ptr_ret_obj(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, const Args &...args) {
GodotObject *ret = nullptr;
std::array<GDExtensionConstTypePtr, sizeof...(Args)> call_args = { { (GDExtensionConstTypePtr)args... } };
@@ -51,13 +51,13 @@ O *_call_builtin_method_ptr_ret_obj(const GDExtensionPtrBuiltInMethod method, GD
return reinterpret_cast<O *>(internal::get_object_instance_binding(ret));
}
-template <class... Args>
+template <typename... Args>
void _call_builtin_constructor(const GDExtensionPtrConstructor constructor, GDExtensionTypePtr base, Args... args) {
std::array<GDExtensionConstTypePtr, sizeof...(Args)> call_args = { { (GDExtensionConstTypePtr)args... } };
constructor(base, call_args.data());
}
-template <class T, class... Args>
+template <typename T, typename... Args>
T _call_builtin_method_ptr_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) {
T ret;
std::array<GDExtensionConstTypePtr, sizeof...(Args)> call_args = { { (GDExtensionConstTypePtr)args... } };
@@ -65,20 +65,20 @@ T _call_builtin_method_ptr_ret(const GDExtensionPtrBuiltInMethod method, GDExten
return ret;
}
-template <class... Args>
+template <typename... Args>
void _call_builtin_method_ptr_no_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) {
std::array<GDExtensionConstTypePtr, sizeof...(Args)> call_args = { { (GDExtensionConstTypePtr)args... } };
method(base, call_args.data(), nullptr, sizeof...(Args));
}
-template <class T>
+template <typename T>
T _call_builtin_operator_ptr(const GDExtensionPtrOperatorEvaluator op, GDExtensionConstTypePtr left, GDExtensionConstTypePtr right) {
T ret;
op(left, right, &ret);
return ret;
}
-template <class T>
+template <typename T>
T _call_builtin_ptr_getter(const GDExtensionPtrGetter getter, GDExtensionConstTypePtr base) {
T ret;
getter(base, &ret);