mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Spider: Replace construct() with TRY(try_create()) pattern
This commit is contained in:
parent
302784ebf8
commit
2efec90fb7
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ 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));
|
||||
auto app_icon = GUI::Icon::default_icon("app-spider");
|
||||
|
||||
Config::pledge_domains("Spider");
|
||||
|
@ -51,7 +51,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
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->set_title("Spider");
|
||||
|
||||
auto mode = static_cast<Spider::Mode>(Config::read_i32("Spider", "Settings", "Mode", static_cast<int>(Spider::Mode::SingleSuit)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue