From 9d2e1691698d70c14a59437c6a1fbd536b0c61e5 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Tue, 23 Nov 2021 10:45:47 +0000 Subject: [PATCH] FlappyBug+Spider: Update GUI:Application::construct usage Update code to use Main:Arguments directly. --- Userland/Games/FlappyBug/main.cpp | 2 +- Userland/Games/Spider/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Games/FlappyBug/main.cpp b/Userland/Games/FlappyBug/main.cpp index 13d8b7660af..b32bdb0de44 100644 --- a/Userland/Games/FlappyBug/main.cpp +++ b/Userland/Games/FlappyBug/main.cpp @@ -19,7 +19,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio rpath recvfd sendfd unix", nullptr)); - auto app = GUI::Application::construct(arguments.argc, arguments.argv); + auto app = GUI::Application::construct(arguments); Config::pledge_domains("FlappyBug"); diff --git a/Userland/Games/Spider/main.cpp b/Userland/Games/Spider/main.cpp index 7a30dd6e92c..6c25711de04 100644 --- a/Userland/Games/Spider/main.cpp +++ b/Userland/Games/Spider/main.cpp @@ -41,7 +41,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio recvfd sendfd rpath unix", nullptr)); - auto app = GUI::Application::construct(arguments.argc, arguments.argv); + auto app = GUI::Application::construct(arguments); auto app_icon = GUI::Icon::default_icon("app-spider"); Config::pledge_domains("Spider");