diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-02 12:53:02 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 15:31:03 +0100 |
commit | d95e50643e676ea3c2fbd09198a6a770ccaab83c (patch) | |
tree | 18ff76c5ad3b1e465652f2ed2a90dc950c1f65e6 /Userland/Libraries/LibGUI/SettingsWindow.cpp | |
parent | 907feb84a013559b59be381050e9bf71537ded9f (diff) | |
download | serenity-d95e50643e676ea3c2fbd09198a6a770ccaab83c.zip |
LibGUI: Cast unused smart-pointer return values to void
Diffstat (limited to 'Userland/Libraries/LibGUI/SettingsWindow.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/SettingsWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/SettingsWindow.cpp b/Userland/Libraries/LibGUI/SettingsWindow.cpp index 3beb028c61..1a74d2c00d 100644 --- a/Userland/Libraries/LibGUI/SettingsWindow.cpp +++ b/Userland/Libraries/LibGUI/SettingsWindow.cpp @@ -26,7 +26,7 @@ ErrorOr<NonnullRefPtr<SettingsWindow>> SettingsWindow::create(String title, Show auto main_widget = TRY(window->try_set_main_widget<GUI::Widget>()); main_widget->set_fill_with_background_color(true); - TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>()); + (void)TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>()); main_widget->layout()->set_margins(4); main_widget->layout()->set_spacing(6); @@ -34,7 +34,7 @@ ErrorOr<NonnullRefPtr<SettingsWindow>> SettingsWindow::create(String title, Show auto button_container = TRY(main_widget->try_add<GUI::Widget>()); button_container->set_shrink_to_fit(true); - TRY(button_container->try_set_layout<GUI::HorizontalBoxLayout>()); + (void)TRY(button_container->try_set_layout<GUI::HorizontalBoxLayout>()); button_container->layout()->set_spacing(6); if (show_defaults_button == ShowDefaultsButton::Yes) { |