mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:18:13 +00:00
2048: Replace construct() with TRY(try_create()) pattern
This commit is contained in:
parent
2189cc6bf1
commit
5b33ee20df
1 changed files with 2 additions and 2 deletions
|
@ -30,10 +30,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
srand(time(nullptr));
|
||||
|
||||
auto app = GUI::Application::construct(arguments);
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
auto app_icon = GUI::Icon::default_icon("app-2048");
|
||||
|
||||
auto window = GUI::Window::construct();
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
|
||||
Config::pledge_domains("2048");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue