From d76b9d86e85ed7c0705209caca40b7a0efc71e14 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 1 Nov 2020 20:29:59 +0100 Subject: QLayout: unify the constructors Drive-by, make QLayout constructor explicit, as it should have always been. [ChangeLog][QtWidgets][QLayout] The QLayout constructor taking a QWidget pointer is now explicit. Change-Id: If6accfb2e7e810fa08adacea9e674c99121f6bc6 Reviewed-by: Richard Moe Gustavsen --- src/widgets/kernel/qlayout.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/widgets/kernel/qlayout.h') diff --git a/src/widgets/kernel/qlayout.h b/src/widgets/kernel/qlayout.h index 0a887e833c..0377aa62b3 100644 --- a/src/widgets/kernel/qlayout.h +++ b/src/widgets/kernel/qlayout.h @@ -77,8 +77,7 @@ public: }; Q_ENUM(SizeConstraint) - QLayout(QWidget *parent); - QLayout(); + explicit QLayout(QWidget *parent = nullptr); ~QLayout(); virtual int spacing() const; -- cgit v1.2.3