diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-23 12:07:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-23 12:27:53 +0100 |
commit | c5d913970ab122cdeaf23aea24e65efa6b425ab0 (patch) | |
tree | 07ef4cb2d039521ec7b1931c707b5196b7ea1628 /Libraries/LibGUI/AbstractButton.cpp | |
parent | 4ce28c32d1813b043758c0d15d5efc17452c2b77 (diff) | |
download | serenity-c5d913970ab122cdeaf23aea24e65efa6b425ab0.zip |
LibGUI: Remove parent parameter to GUI::Widget constructor
Diffstat (limited to 'Libraries/LibGUI/AbstractButton.cpp')
-rw-r--r-- | Libraries/LibGUI/AbstractButton.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Libraries/LibGUI/AbstractButton.cpp b/Libraries/LibGUI/AbstractButton.cpp index 27f3ed998c..2c02b7d9fe 100644 --- a/Libraries/LibGUI/AbstractButton.cpp +++ b/Libraries/LibGUI/AbstractButton.cpp @@ -31,14 +31,8 @@ namespace GUI { -AbstractButton::AbstractButton(Widget* parent) - : AbstractButton({}, parent) -{ -} - -AbstractButton::AbstractButton(const StringView& text, Widget* parent) - : Widget(parent) - , m_text(text) +AbstractButton::AbstractButton(const StringView& text) + : m_text(text) { m_auto_repeat_timer = add<Core::Timer>(); m_auto_repeat_timer->on_timeout = [this] { |