mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
2048: Replace construct() with TRY(try_create()) pattern
This commit is contained in:
parent
2189cc6bf1
commit
5b33ee20df
Notes:
sideshowbarker
2024-07-18 00:45:21 +09:00
Author: https://github.com/pmhpereira
Commit: 5b33ee20df
Pull-request: https://github.com/SerenityOS/serenity/pull/11053
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue