From 2efec90fb7287cf3c7836ed99e5db57157a06cc8 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Wed, 24 Nov 2021 00:39:32 +0000 Subject: [PATCH] Spider: Replace construct() with TRY(try_create()) pattern --- Userland/Games/Spider/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Games/Spider/main.cpp b/Userland/Games/Spider/main.cpp index 6c25711de04..2f0c78158da 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)));