1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibGUI: Remove parent parameter to GUI::Widget constructor

This commit is contained in:
Andreas Kling 2020-02-23 12:07:13 +01:00
parent 4ce28c32d1
commit c5d913970a
114 changed files with 207 additions and 313 deletions

View file

@ -74,8 +74,7 @@ public:
Function<void(int)> on_value_changed;
protected:
explicit Slider(Widget* = nullptr);
explicit Slider(Orientation, Widget* = nullptr);
explicit Slider(Orientation = Orientation::Vertical);
virtual void paint_event(PaintEvent&) override;
virtual void mousedown_event(MouseEvent&) override;
@ -106,8 +105,8 @@ public:
virtual ~VerticalSlider() override {}
private:
explicit VerticalSlider(Widget* parent = nullptr)
: Slider(Orientation::Vertical, parent)
VerticalSlider()
: Slider(Orientation::Vertical)
{
}
};
@ -118,8 +117,8 @@ public:
virtual ~HorizontalSlider() override {}
private:
explicit HorizontalSlider(Widget* parent = nullptr)
: Slider(Orientation::Horizontal, parent)
HorizontalSlider()
: Slider(Orientation::Horizontal)
{
}
};