summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractView.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/AbstractView.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/AbstractView.h')
-rw-r--r--Libraries/LibGUI/AbstractView.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/AbstractView.h b/Libraries/LibGUI/AbstractView.h
index 3c4a87e586..86564bc289 100644
--- a/Libraries/LibGUI/AbstractView.h
+++ b/Libraries/LibGUI/AbstractView.h
@@ -73,7 +73,7 @@ public:
NonnullRefPtr<Gfx::Font> font_for_index(const ModelIndex&) const;
protected:
- explicit AbstractView(Widget* parent);
+ explicit AbstractView(Widget* parent = nullptr);
virtual ~AbstractView() override;
virtual void mousedown_event(MouseEvent&) override;