summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/SettingsWindow.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-02 12:53:02 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commitd95e50643e676ea3c2fbd09198a6a770ccaab83c (patch)
tree18ff76c5ad3b1e465652f2ed2a90dc950c1f65e6 /Userland/Libraries/LibGUI/SettingsWindow.cpp
parent907feb84a013559b59be381050e9bf71537ded9f (diff)
downloadserenity-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.cpp4
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) {