From 428582e805a28a9d1a08828443c95d432a3c9349 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Feb 2020 09:01:05 +0100 Subject: LibGUI: Don't require passing a parent to widget constructors This is a step towards using Core::Object::add more, which takes care of parenting the newly created child automatically. --- Libraries/LibGUI/AbstractView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibGUI/AbstractView.h') 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 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; -- cgit v1.2.3