summaryrefslogtreecommitdiff
path: root/Userland/Demos/CatDog
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-03 09:47:48 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commit7e05ccaa70c22e8655a4ce9a4d2600df884a0473 (patch)
tree9f318d5310820e558d1a6913d15783a6abad2f33 /Userland/Demos/CatDog
parent7196570f9bd038abd281341be26b0b7d02ff011b (diff)
downloadserenity-7e05ccaa70c22e8655a4ce9a4d2600df884a0473.zip
Demos: Cast unused smart-pointer return values to void
Diffstat (limited to 'Userland/Demos/CatDog')
-rw-r--r--Userland/Demos/CatDog/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Demos/CatDog/main.cpp b/Userland/Demos/CatDog/main.cpp
index 1dd739e17c..1043ea324d 100644
--- a/Userland/Demos/CatDog/main.cpp
+++ b/Userland/Demos/CatDog/main.cpp
@@ -38,7 +38,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_icon(app_icon.bitmap_for_size(16));
auto catdog_widget = TRY(window->try_set_main_widget<CatDog>());
- TRY(catdog_widget->try_set_layout<GUI::VerticalBoxLayout>());
+ (void)TRY(catdog_widget->try_set_layout<GUI::VerticalBoxLayout>());
catdog_widget->layout()->set_spacing(0);
auto context_menu = TRY(GUI::Menu::try_create());
@@ -59,7 +59,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
advice_window->set_alpha_hit_threshold(1.0f);
auto advice_widget = TRY(advice_window->try_set_main_widget<SpeechBubble>());
- TRY(advice_widget->try_set_layout<GUI::VerticalBoxLayout>());
+ (void)TRY(advice_widget->try_set_layout<GUI::VerticalBoxLayout>());
advice_widget->layout()->set_spacing(0);
auto advice_timer = TRY(Core::Timer::try_create());