mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Userland: Always construct Application with try_create()
This commit is contained in:
parent
cd7037afd5
commit
73552c1856
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/AtkinsSJ
Commit: 73552c1856
Pull-request: https://github.com/SerenityOS/serenity/pull/13707
Reviewed-by: https://github.com/alimpfard
22 changed files with 22 additions and 22 deletions
|
@ -66,7 +66,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_positional_argument(specified_url, "URL to open", "url", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
auto app = GUI::Application::construct(arguments);
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
Config::pledge_domain("Browser");
|
||||
Config::monitor_domain("Browser");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue