diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-26 17:16:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-26 17:51:00 +0200 |
commit | e0b8b4ac67321a03d037e12fb6d46edfce3a7504 (patch) | |
tree | 25322ffd8ceb309e0652c556ef07f62ed361e528 /DevTools/HackStudio | |
parent | 71556e39a461e045015fa28a984c1649c9d15b83 (diff) | |
download | serenity-e0b8b4ac67321a03d037e12fb6d46edfce3a7504.zip |
LibCore+LibGUI: Switch to using AK::is and AK::downcast
Diffstat (limited to 'DevTools/HackStudio')
-rw-r--r-- | DevTools/HackStudio/EditorWrapper.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/DevTools/HackStudio/EditorWrapper.h b/DevTools/HackStudio/EditorWrapper.h index 00c2143c3c..cea322fab2 100644 --- a/DevTools/HackStudio/EditorWrapper.h +++ b/DevTools/HackStudio/EditorWrapper.h @@ -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() |