mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Minesweeper: Replace construct() with TRY(try_create()) pattern
This commit is contained in:
parent
0a800cc1bb
commit
36056c1cba
Notes:
sideshowbarker
2024-07-18 00:44:59 +09:00
Author: https://github.com/pmhpereira Commit: https://github.com/SerenityOS/serenity/commit/36056c1cbaa Pull-request: https://github.com/SerenityOS/serenity/pull/11053
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ ErrorOr<int> 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<int> 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);
|
||||
|
|
Loading…
Reference in a new issue