Various minor code cleanup tweaks

This commit is contained in:
Wojtek Figat
2023-06-09 23:26:37 +02:00
parent d798b10d4c
commit 7c55d50507
4 changed files with 9 additions and 31 deletions

View File

@@ -160,7 +160,7 @@ public:
template<typename T>
static T* Cast(ScriptingObject* obj)
{
return obj && CanCast(obj->GetClass(), T::GetStaticClass()) ? (T*)obj : nullptr;
return obj && CanCast(obj->GetClass(), T::GetStaticClass()) ? static_cast<T*>(obj) : nullptr;
}
bool Is(const ScriptingTypeHandle& type) const;