1
Fork 0
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:
Pedro Pereira 2021-11-24 00:38:06 +00:00 committed by Andreas Kling
parent 2189cc6bf1
commit 5b33ee20df

View file

@ -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");