From 9903e6779b70fc03aae70a37b9cf053f4f355b91 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Thu, 7 Mar 2024 20:29:49 -0600 Subject: Enforce template syntax `typename` over `class` --- core/object/object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/object/object.h') diff --git a/core/object/object.h b/core/object/object.h index cb1495296d..526c45b348 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -796,12 +796,12 @@ public: void detach_from_objectdb(); _FORCE_INLINE_ ObjectID get_instance_id() const { return _instance_id; } - template + template static T *cast_to(Object *p_object) { return p_object ? dynamic_cast(p_object) : nullptr; } - template + template static const T *cast_to(const Object *p_object) { return p_object ? dynamic_cast(p_object) : nullptr; } -- cgit v1.2.3