mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Everywhere: Stop using NonnullOwnPtrVector
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
parent
689ca370d4
commit
359d6e7b0b
111 changed files with 517 additions and 503 deletions
|
@ -243,11 +243,11 @@ void CommandPalette::collect_actions(GUI::Window& parent_window)
|
|||
};
|
||||
|
||||
Function<void(Menu&)> collect_actions_from_menu = [&](Menu& menu) {
|
||||
for (auto menu_item : menu.items()) {
|
||||
if (menu_item.submenu())
|
||||
collect_actions_from_menu(*menu_item.submenu());
|
||||
for (auto& menu_item : menu.items()) {
|
||||
if (menu_item->submenu())
|
||||
collect_actions_from_menu(*menu_item->submenu());
|
||||
|
||||
auto* action = menu_item.action();
|
||||
auto* action = menu_item->action();
|
||||
if (should_show_action(action))
|
||||
actions.set(*action);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue