summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/ResizeCorner.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/ResizeCorner.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/ResizeCorner.h')
-rw-r--r--Libraries/LibGUI/ResizeCorner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/ResizeCorner.h b/Libraries/LibGUI/ResizeCorner.h
index 2a16d2574b..a91379de5a 100644
--- a/Libraries/LibGUI/ResizeCorner.h
+++ b/Libraries/LibGUI/ResizeCorner.h
@@ -34,7 +34,7 @@ public:
virtual ~ResizeCorner() override;
protected:
- explicit ResizeCorner(Widget* parent);
+ explicit ResizeCorner(Widget* parent = nullptr);
virtual void paint_event(PaintEvent&) override;
virtual void mousedown_event(MouseEvent&) override;