mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Breakout: Replace construct() with TRY(try_create()) pattern
This commit is contained in:
parent
5b33ee20df
commit
92e9b447f4
Notes:
sideshowbarker
2024-07-18 00:45:17 +09:00
Author: https://github.com/pmhpereira Commit: https://github.com/SerenityOS/serenity/commit/92e9b447f48 Pull-request: https://github.com/SerenityOS/serenity/pull/11053
1 changed files with 2 additions and 2 deletions
|
@ -18,14 +18,14 @@ ErrorOr<int> 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);
|
||||
|
|
Loading…
Reference in a new issue