summaryrefslogtreecommitdiff
path: root/Userland/Demos
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
parent7196570f9bd038abd281341be26b0b7d02ff011b (diff)
downloadserenity-7e05ccaa70c22e8655a4ce9a4d2600df884a0473.zip
Demos: Cast unused smart-pointer return values to void
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/CatDog/main.cpp4
-rw-r--r--Userland/Demos/Eyes/main.cpp2
-rw-r--r--Userland/Demos/LibGfxDemo/main.cpp2
-rw-r--r--Userland/Demos/LibGfxScaleDemo/main.cpp2
-rw-r--r--Userland/Demos/ModelGallery/main.cpp2
-rw-r--r--Userland/Demos/WidgetGallery/main.cpp2
6 files changed, 7 insertions, 7 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());
diff --git a/Userland/Demos/Eyes/main.cpp b/Userland/Demos/Eyes/main.cpp
index 3960461ef7..9468f75713 100644
--- a/Userland/Demos/Eyes/main.cpp
+++ b/Userland/Demos/Eyes/main.cpp
@@ -64,7 +64,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->resize(75 * (full_rows > 0 ? max_in_row : extra_columns), 100 * (full_rows + (extra_columns > 0 ? 1 : 0)));
window->set_has_alpha_channel(true);
- TRY(window->try_set_main_widget<EyesWidget>(num_eyes, full_rows, extra_columns));
+ (void)TRY(window->try_set_main_widget<EyesWidget>(num_eyes, full_rows, extra_columns));
auto file_menu = TRY(window->try_add_menu("&File"));
TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })));
diff --git a/Userland/Demos/LibGfxDemo/main.cpp b/Userland/Demos/LibGfxDemo/main.cpp
index f88d0c0277..d555efcdce 100644
--- a/Userland/Demos/LibGfxDemo/main.cpp
+++ b/Userland/Demos/LibGfxDemo/main.cpp
@@ -203,7 +203,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app_icon = GUI::Icon::default_icon("app-libgfx-demo");
window->set_icon(app_icon.bitmap_for_size(16));
- TRY(window->try_set_main_widget<Canvas>());
+ (void)TRY(window->try_set_main_widget<Canvas>());
window->show();
return app->exec();
diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp
index 671901d881..da2136bc10 100644
--- a/Userland/Demos/LibGfxScaleDemo/main.cpp
+++ b/Userland/Demos/LibGfxScaleDemo/main.cpp
@@ -122,7 +122,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app_icon = GUI::Icon::default_icon("app-libgfx-demo");
window->set_icon(app_icon.bitmap_for_size(16));
- TRY(window->try_set_main_widget<Canvas>());
+ (void)TRY(window->try_set_main_widget<Canvas>());
window->show();
return app->exec();
diff --git a/Userland/Demos/ModelGallery/main.cpp b/Userland/Demos/ModelGallery/main.cpp
index 903ef2ffe8..15d46fd6b3 100644
--- a/Userland/Demos/ModelGallery/main.cpp
+++ b/Userland/Demos/ModelGallery/main.cpp
@@ -28,7 +28,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_title("Model Gallery");
window->set_icon(app_icon.bitmap_for_size(16));
window->resize(430, 480);
- TRY(window->try_set_main_widget<GalleryWidget>());
+ (void)TRY(window->try_set_main_widget<GalleryWidget>());
window->show();
return app->exec();
diff --git a/Userland/Demos/WidgetGallery/main.cpp b/Userland/Demos/WidgetGallery/main.cpp
index 1dc0bc2feb..16766751ac 100644
--- a/Userland/Demos/WidgetGallery/main.cpp
+++ b/Userland/Demos/WidgetGallery/main.cpp
@@ -28,7 +28,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->resize(430, 480);
window->set_title("Widget Gallery");
window->set_icon(app_icon.bitmap_for_size(16));
- TRY(window->try_set_main_widget<GalleryWidget>());
+ (void)TRY(window->try_set_main_widget<GalleryWidget>());
window->show();
return app->exec();