diff options
author | Pedro Pereira <pmh.pereira@gmail.com> | 2021-11-24 00:38:06 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-24 13:51:07 +0100 |
commit | 5b33ee20df1cd9553022b1c9eb1265359ddd6ebf (patch) | |
tree | f70136ba1ab29f66597ce995509c826201555ea8 /Userland/Games/2048/main.cpp | |
parent | 2189cc6bf1d15bf39c8b5b571044a53dd2813602 (diff) | |
download | serenity-5b33ee20df1cd9553022b1c9eb1265359ddd6ebf.zip |
2048: Replace construct() with TRY(try_create()) pattern
Diffstat (limited to 'Userland/Games/2048/main.cpp')
-rw-r--r-- | Userland/Games/2048/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int> 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"); |