1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

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.
This commit is contained in:
Andreas Kling 2020-02-23 09:01:05 +01:00
parent d9e459293b
commit 428582e805
23 changed files with 35 additions and 35 deletions

View file

@ -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)
{
}