summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Slider.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/Slider.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/Slider.h')
-rw-r--r--Libraries/LibGUI/Slider.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/Slider.h b/Libraries/LibGUI/Slider.h
index 5b26cc6161..60e5a0cc27 100644
--- a/Libraries/LibGUI/Slider.h
+++ b/Libraries/LibGUI/Slider.h
@@ -106,7 +106,7 @@ public:
virtual ~VerticalSlider() override {}
private:
- explicit VerticalSlider(Widget* parent)
+ explicit VerticalSlider(Widget* parent = nullptr)
: Slider(Orientation::Vertical, parent)
{
}
@@ -118,7 +118,7 @@ public:
virtual ~HorizontalSlider() override {}
private:
- explicit HorizontalSlider(Widget* parent)
+ explicit HorizontalSlider(Widget* parent = nullptr)
: Slider(Orientation::Horizontal, parent)
{
}