mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&>
This commit is contained in:
parent
3d94b5051d
commit
7ac196974d
22 changed files with 92 additions and 94 deletions
|
@ -136,9 +136,9 @@ void KeyboardMapperWidget::load_from_file(String filename)
|
|||
m_character_map = result.value();
|
||||
set_current_map("map");
|
||||
|
||||
for (Widget* widget : m_map_group->child_widgets()) {
|
||||
auto radio_button = (GUI::RadioButton*)widget;
|
||||
radio_button->set_checked(radio_button->name() == "map");
|
||||
for (auto& widget : m_map_group->child_widgets()) {
|
||||
auto& radio_button = static_cast<GUI::RadioButton&>(widget);
|
||||
radio_button.set_checked(radio_button.name() == "map");
|
||||
}
|
||||
|
||||
update_window_title();
|
||||
|
@ -153,9 +153,9 @@ void KeyboardMapperWidget::load_from_system()
|
|||
m_character_map = result.value().character_map_data();
|
||||
set_current_map("map");
|
||||
|
||||
for (Widget* widget : m_map_group->child_widgets()) {
|
||||
auto radio_button = (GUI::RadioButton*)widget;
|
||||
radio_button->set_checked(radio_button->name() == "map");
|
||||
for (auto& widget : m_map_group->child_widgets()) {
|
||||
auto& radio_button = static_cast<GUI::RadioButton&>(widget);
|
||||
radio_button.set_checked(radio_button.name() == "map");
|
||||
}
|
||||
|
||||
update_window_title();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue