mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
WidgetGallery: Use TRY() a lot more :^)
This commit is contained in:
parent
bd61558ed8
commit
4d03852190
3 changed files with 52 additions and 50 deletions
|
@ -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));
|
||||
window->set_main_widget<GalleryWidget>();
|
||||
TRY(window->try_set_main_widget<GalleryWidget>());
|
||||
window->show();
|
||||
|
||||
return app->exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue