mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibCore: Remove Core::Object::is_widget() in favor of RTTI
This commit is contained in:
parent
42179715c3
commit
7841528cd4
4 changed files with 7 additions and 11 deletions
|
@ -37,10 +37,10 @@ void ToolBarContainer::child_event(Core::ChildEvent& event)
|
|||
Frame::child_event(event);
|
||||
|
||||
if (event.type() == Core::Event::ChildAdded) {
|
||||
if (event.child() && event.child()->is_widget())
|
||||
if (event.child() && is<Widget>(event.child()))
|
||||
did_add_toolbar((Widget&)*event.child());
|
||||
} else if (event.type() == Core::Event::ChildRemoved) {
|
||||
if (event.child() && event.child()->is_widget()) {
|
||||
if (event.child() && is<Widget>(event.child())) {
|
||||
did_remove_toolbar((Widget&)*event.child());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue