mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +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
|
@ -155,7 +155,7 @@ void Splitter::recompute_grabbables()
|
|||
m_hovered_index = {};
|
||||
|
||||
auto child_widgets = this->child_widgets();
|
||||
child_widgets.remove_all_matching([&](auto& widget) { return !widget->is_visible(); });
|
||||
child_widgets.remove_all_matching([&](auto& widget) { return !widget.is_visible(); });
|
||||
|
||||
if (child_widgets.size() < 2)
|
||||
return;
|
||||
|
@ -164,8 +164,8 @@ void Splitter::recompute_grabbables()
|
|||
size_t end_index = 1;
|
||||
|
||||
while (end_index < child_widgets.size()) {
|
||||
auto const& first_widget = *child_widgets[start_index];
|
||||
auto const& second_widget = *child_widgets[end_index];
|
||||
auto const& first_widget = child_widgets[start_index];
|
||||
auto const& second_widget = child_widgets[end_index];
|
||||
m_grabbables.append(Grabbable {
|
||||
.index = m_grabbables.size(),
|
||||
.grabbable_rect = rect_between_widgets(first_widget, second_widget, true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue