mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
AK: Rename downcast<T> => verify_cast<T>
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
This commit is contained in:
parent
6215a9c2cb
commit
ee3a73ddbb
61 changed files with 262 additions and 262 deletions
|
@ -54,7 +54,7 @@ void StackWidget::child_event(Core::ChildEvent& event)
|
|||
{
|
||||
if (!event.child() || !is<Widget>(*event.child()))
|
||||
return Widget::child_event(event);
|
||||
auto& child = downcast<Widget>(*event.child());
|
||||
auto& child = verify_cast<Widget>(*event.child());
|
||||
if (event.type() == Event::ChildAdded) {
|
||||
if (!m_active_widget)
|
||||
set_active_widget(&child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue