summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/StackWidget.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/StackWidget.cpp
parent71556e39a461e045015fa28a984c1649c9d15b83 (diff)
downloadserenity-e0b8b4ac67321a03d037e12fb6d46edfce3a7504.zip
LibCore+LibGUI: Switch to using AK::is and AK::downcast
Diffstat (limited to 'Libraries/LibGUI/StackWidget.cpp')
-rw-r--r--Libraries/LibGUI/StackWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/StackWidget.cpp b/Libraries/LibGUI/StackWidget.cpp
index f72e26e1af..eaaf05dfa1 100644
--- a/Libraries/LibGUI/StackWidget.cpp
+++ b/Libraries/LibGUI/StackWidget.cpp
@@ -63,9 +63,9 @@ void StackWidget::resize_event(ResizeEvent& event)
void StackWidget::child_event(Core::ChildEvent& event)
{
- if (!event.child() || !Core::is<Widget>(*event.child()))
+ if (!event.child() || !is<Widget>(*event.child()))
return Widget::child_event(event);
- auto& child = Core::to<Widget>(*event.child());
+ auto& child = downcast<Widget>(*event.child());
if (event.type() == Event::ChildAdded) {
if (!m_active_widget)
set_active_widget(&child);