diff options
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/object/object.h b/core/object/object.h index 2efcf70670..d9551ecd01 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -797,12 +797,12 @@ public: void detach_from_objectdb(); _FORCE_INLINE_ ObjectID get_instance_id() const { return _instance_id; } - template <class T> + template <typename T> static T *cast_to(Object *p_object) { return p_object ? dynamic_cast<T *>(p_object) : nullptr; } - template <class T> + template <typename T> static const T *cast_to(const Object *p_object) { return p_object ? dynamic_cast<const T *>(p_object) : nullptr; } |