1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

Everywhere: Use Application::construct() with Main::Arguments directly

Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
This commit is contained in:
Mustafa Quraish 2021-11-22 19:11:16 -05:00 committed by Brian Gianforcaro
parent 2fbcab46bf
commit 4d302e0e88
14 changed files with 14 additions and 14 deletions

View file

@ -162,7 +162,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_option(speed, "Speed (default = 1)", "speed", 's', "number");
args_parser.parse(arguments);
auto app = GUI::Application::construct(arguments.argc, arguments.argv);
auto app = GUI::Application::construct(arguments);
TRY(System::pledge("stdio recvfd sendfd rpath", nullptr));