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

LibGUI: Let Application constructor accept in Main::Arguments

Instead of manually passing in `arguments.argc` and `arguments.argv`,
we can now just pass in the arguments directly.
This commit is contained in:
Mustafa Quraish 2021-11-22 18:56:43 -05:00 committed by Brian Gianforcaro
parent 3ca00c8ae6
commit a0ef655451

View file

@ -16,6 +16,7 @@
#include <LibGUI/Shortcut.h>
#include <LibGUI/Widget.h>
#include <LibGfx/Point.h>
#include <LibMain/Main.h>
namespace GUI {
@ -85,6 +86,10 @@ public:
private:
Application(int argc, char** argv, Core::EventLoop::MakeInspectable = Core::EventLoop::MakeInspectable::No);
Application(Main::Arguments const& arguments, Core::EventLoop::MakeInspectable inspectable = Core::EventLoop::MakeInspectable::No)
: Application(arguments.argc, arguments.argv, inspectable)
{
}
virtual void event(Core::Event&) override;