diff --git a/Userland/Games/Breakout/main.cpp b/Userland/Games/Breakout/main.cpp index 7017e2e12d..4f4c9e7794 100644 --- a/Userland/Games/Breakout/main.cpp +++ b/Userland/Games/Breakout/main.cpp @@ -18,14 +18,14 @@ 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)); TRY(Core::System::pledge("stdio recvfd sendfd rpath", nullptr)); 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->resize(Breakout::Game::game_width, Breakout::Game::game_height); window->set_resizable(false); window->set_double_buffering_enabled(false);