Просмотр исходного кода

FlappyBug+Spider: Update GUI:Application::construct usage

Update code to use Main:Arguments directly.
Pedro Pereira 3 лет назад
Родитель
Сommit
9d2e169169
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Userland/Games/FlappyBug/main.cpp
  2. 1 1
      Userland/Games/Spider/main.cpp

+ 1 - 1
Userland/Games/FlappyBug/main.cpp

@@ -19,7 +19,7 @@ ErrorOr<int> 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");
 

+ 1 - 1
Userland/Games/Spider/main.cpp

@@ -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.argc, arguments.argv);
+    auto app = GUI::Application::construct(arguments);
     auto app_icon = GUI::Icon::default_icon("app-spider");
 
     Config::pledge_domains("Spider");