1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibCore+LibGUI: Switch to using AK::is and AK::downcast

This commit is contained in:
Andreas Kling 2020-07-26 17:16:35 +02:00
parent 71556e39a4
commit e0b8b4ac67
14 changed files with 341 additions and 98 deletions

View file

@ -55,8 +55,6 @@ private:
RefPtr<Editor> m_editor;
};
template<>
inline bool Core::is<EditorWrapper>(const Core::Object& object)
{
return !strcmp(object.class_name(), "EditorWrapper");
}
AK_BEGIN_TYPE_TRAITS(EditorWrapper)
static bool is_type(const Core::Object& object) { return !strcmp(object.class_name(), "EditorWrapper"); }
AK_END_TYPE_TRAITS()