diff --git a/Userland/Games/Spider/main.cpp b/Userland/Games/Spider/main.cpp index 6c25711de0..2f0c78158d 100644 --- a/Userland/Games/Spider/main.cpp +++ b/Userland/Games/Spider/main.cpp @@ -41,7 +41,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio recvfd sendfd rpath unix", nullptr)); - auto app = GUI::Application::construct(arguments); + auto app = TRY(GUI::Application::try_create(arguments)); auto app_icon = GUI::Icon::default_icon("app-spider"); Config::pledge_domains("Spider"); @@ -51,7 +51,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); - auto window = GUI::Window::construct(); + auto window = TRY(GUI::Window::try_create()); window->set_title("Spider"); auto mode = static_cast(Config::read_i32("Spider", "Settings", "Mode", static_cast(Spider::Mode::SingleSuit)));