mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +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
|
@ -362,8 +362,8 @@ void ColorPicker::create_color_button(Widget& container, unsigned rgb)
|
|||
auto& widget = container.add<ColorButton>(*this, color);
|
||||
widget.on_click = [this](Color color) {
|
||||
for (auto& value : m_color_widgets) {
|
||||
value->set_selected(false);
|
||||
value->update();
|
||||
value.set_selected(false);
|
||||
value.update();
|
||||
}
|
||||
|
||||
m_color = color;
|
||||
|
@ -375,7 +375,7 @@ void ColorPicker::create_color_button(Widget& container, unsigned rgb)
|
|||
widget.set_selected(true);
|
||||
}
|
||||
|
||||
m_color_widgets.append(&widget);
|
||||
m_color_widgets.append(widget);
|
||||
}
|
||||
|
||||
ColorButton::ColorButton(ColorPicker& picker, Color color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue