mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
Demos: Cast unused smart-pointer return values to void
This commit is contained in:
parent
7196570f9b
commit
7e05ccaa70
6 changed files with 7 additions and 7 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue