You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Enforce template syntax typename over class
This commit is contained in:
@@ -796,12 +796,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user