execute IWYU and add some coverage tests.

This commit is contained in:
ArthurSonzogni
2022-04-27 18:57:48 +02:00
parent 84d6e6b3dd
commit d0890f94d1
20 changed files with 124 additions and 96 deletions

View File

@@ -115,9 +115,8 @@ class MenuBase : public ComponentBase {
bool is_focused = (focused_entry() == i) && is_menu_focused;
bool is_selected = (*selected_ == i);
auto focus_management = !is_selected ? nothing
: is_menu_focused ? focus
: nothing;
auto focus_management =
!is_selected ? nothing : is_menu_focused ? focus : nothing;
EntryState state = {
entries_[i],
false,