diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/Action.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGUI/Action.cpp b/Userland/Libraries/LibGUI/Action.cpp index 9c129fafe9..848911849a 100644 --- a/Userland/Libraries/LibGUI/Action.cpp +++ b/Userland/Libraries/LibGUI/Action.cpp @@ -184,19 +184,12 @@ NonnullRefPtr<Action> Action::create_checkable(String text, const Shortcut& shor } Action::Action(String text, Function<void(Action&)> on_activation_callback, Core::Object* parent, bool checkable) - : Core::Object(parent) - , on_activation(move(on_activation_callback)) - , m_text(move(text)) - , m_checkable(checkable) + : Action(move(text), Shortcut {}, nullptr, move(on_activation_callback), parent, checkable) { } Action::Action(String text, RefPtr<Gfx::Bitmap> icon, Function<void(Action&)> on_activation_callback, Core::Object* parent, bool checkable) - : Core::Object(parent) - , on_activation(move(on_activation_callback)) - , m_text(move(text)) - , m_icon(move(icon)) - , m_checkable(checkable) + : Action(move(text), Shortcut {}, move(icon), move(on_activation_callback), parent, checkable) { } |