mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +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:
parent
3ca00c8ae6
commit
a0ef655451
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue