summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Action.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-26 17:16:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-26 17:51:00 +0200
commite0b8b4ac67321a03d037e12fb6d46edfce3a7504 (patch)
tree25322ffd8ceb309e0652c556ef07f62ed361e528 /Libraries/LibGUI/Action.cpp
parent71556e39a461e045015fa28a984c1649c9d15b83 (diff)
downloadserenity-e0b8b4ac67321a03d037e12fb6d46edfce3a7504.zip
LibCore+LibGUI: Switch to using AK::is and AK::downcast
Diffstat (limited to 'Libraries/LibGUI/Action.cpp')
-rw-r--r--Libraries/LibGUI/Action.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/Action.cpp b/Libraries/LibGUI/Action.cpp
index 8bb9ef7c88..8a4edb6d9d 100644
--- a/Libraries/LibGUI/Action.cpp
+++ b/Libraries/LibGUI/Action.cpp
@@ -152,9 +152,9 @@ Action::Action(const StringView& text, const Shortcut& shortcut, RefPtr<Gfx::Bit
, m_shortcut(shortcut)
, m_checkable(checkable)
{
- if (parent && Core::is<Widget>(*parent)) {
+ if (parent && is<Widget>(*parent)) {
m_scope = ShortcutScope::WidgetLocal;
- } else if (parent && Core::is<Window>(*parent)) {
+ } else if (parent && is<Window>(*parent)) {
m_scope = ShortcutScope::WindowLocal;
} else {
m_scope = ShortcutScope::ApplicationGlobal;