mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibCore+LibGUI: Switch to using AK::is and AK::downcast
This commit is contained in:
parent
71556e39a4
commit
e0b8b4ac67
14 changed files with 341 additions and 98 deletions
|
@ -74,7 +74,7 @@ void RadioButton::for_each_in_group(Callback callback)
|
|||
if (!parent())
|
||||
return;
|
||||
parent()->for_each_child_of_type<RadioButton>([&](auto& child) {
|
||||
return callback(static_cast<RadioButton&>(child));
|
||||
return callback(downcast<RadioButton>(child));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue