mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Games: Cast unused smart-pointer return values to void
This commit is contained in:
parent
d95e50643e
commit
0e2fa09f52
6 changed files with 11 additions and 11 deletions
|
@ -43,7 +43,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->resize(139, 175);
|
||||
|
||||
auto widget = TRY(window->try_set_main_widget<GUI::Widget>());
|
||||
TRY(widget->try_set_layout<GUI::VerticalBoxLayout>());
|
||||
(void)TRY(widget->try_set_layout<GUI::VerticalBoxLayout>());
|
||||
widget->layout()->set_spacing(0);
|
||||
|
||||
auto top_line = TRY(widget->try_add<GUI::SeparatorWidget>(Gfx::Orientation::Horizontal));
|
||||
|
@ -52,7 +52,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto container = TRY(widget->try_add<GUI::Widget>());
|
||||
container->set_fill_with_background_color(true);
|
||||
container->set_fixed_height(36);
|
||||
TRY(container->try_set_layout<GUI::HorizontalBoxLayout>());
|
||||
(void)TRY(container->try_set_layout<GUI::HorizontalBoxLayout>());
|
||||
|
||||
container->layout()->add_spacer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue