diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-16 21:17:12 +0000 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-18 16:56:56 +0000 |
commit | 6b66e39df443d4be087cb1b9cb1eeba5341811b0 (patch) | |
tree | 117e1d5a7ff29e1451a4b6b97344c6b8c71aaa61 /Userland/Services/Taskbar | |
parent | 77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f (diff) | |
download | serenity-6b66e39df443d4be087cb1b9cb1eeba5341811b0.zip |
LibGUI+Userland: Stop returning Layout from `Widget::(try_)set_layout()`
Nobody uses this return value any more. It also lets us remove a whole
bunch of `(void)` casts. :^)
Diffstat (limited to 'Userland/Services/Taskbar')
-rw-r--r-- | Userland/Services/Taskbar/TaskbarWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 8a973c8edd..f850c2eb39 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -73,13 +73,13 @@ TaskbarWindow::TaskbarWindow() ErrorOr<void> TaskbarWindow::populate_taskbar() { auto main_widget = TRY(set_main_widget<TaskbarWidget>()); - (void)TRY(main_widget->try_set_layout<GUI::HorizontalBoxLayout>(GUI::Margins { 2, 3, 0, 3 })); + TRY(main_widget->try_set_layout<GUI::HorizontalBoxLayout>(GUI::Margins { 2, 3, 0, 3 })); m_quick_launch = TRY(Taskbar::QuickLaunchWidget::create()); TRY(main_widget->try_add_child(*m_quick_launch)); m_task_button_container = TRY(main_widget->try_add<GUI::Widget>()); - (void)TRY(m_task_button_container->try_set_layout<GUI::HorizontalBoxLayout>(GUI::Margins {}, 3)); + TRY(m_task_button_container->try_set_layout<GUI::HorizontalBoxLayout>(GUI::Margins {}, 3)); m_default_icon = TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/window.png"sv)); |