From 36056c1cbaa0b3b3433d582faca56ff030ebbe59 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Wed, 24 Nov 2021 00:39:04 +0000 Subject: [PATCH] Minesweeper: Replace construct() with TRY(try_create()) pattern --- Userland/Games/Minesweeper/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp index c6955129e48..0cc3222b871 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -26,7 +26,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio rpath recvfd sendfd unix", nullptr)); - auto app = GUI::Application::construct(arguments); + auto app = TRY(GUI::Application::try_create(arguments)); Config::pledge_domains("Minesweeper"); @@ -37,7 +37,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto app_icon = GUI::Icon::default_icon("app-minesweeper"); - auto window = GUI::Window::construct(); + auto window = TRY(GUI::Window::try_create()); window->set_resizable(false); window->set_title("Minesweeper"); window->resize(139, 175);