diff --git a/Userland/Games/2048/main.cpp b/Userland/Games/2048/main.cpp index bc474c6737..ed0b7e26bf 100644 --- a/Userland/Games/2048/main.cpp +++ b/Userland/Games/2048/main.cpp @@ -30,10 +30,10 @@ ErrorOr 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");