summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/CheckBox.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-23 09:01:05 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-23 11:10:52 +0100
commit428582e805a28a9d1a08828443c95d432a3c9349 (patch)
tree033a1d9868fb954d5a3332f3470562f640000944 /Libraries/LibGUI/CheckBox.h
parentd9e459293b58ce1c79e7c4b89dd927546a691880 (diff)
downloadserenity-428582e805a28a9d1a08828443c95d432a3c9349.zip
LibGUI: Don't require passing a parent to widget constructors
This is a step towards using Core::Object::add<T> more, which takes care of parenting the newly created child automatically.
Diffstat (limited to 'Libraries/LibGUI/CheckBox.h')
-rw-r--r--Libraries/LibGUI/CheckBox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/CheckBox.h b/Libraries/LibGUI/CheckBox.h
index 35ff654445..bee9ccad49 100644
--- a/Libraries/LibGUI/CheckBox.h
+++ b/Libraries/LibGUI/CheckBox.h
@@ -38,8 +38,8 @@ public:
virtual void click() override;
private:
- CheckBox(const StringView&, Widget* parent);
- explicit CheckBox(Widget* parent);
+ CheckBox(const StringView&, Widget* parent = nullptr);
+ explicit CheckBox(Widget* parent = nullptr);
// These don't make sense for a check box, so hide them.
using AbstractButton::auto_repeat_interval;