summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/dragging/mainwindow.h
diff options
context:
space:
mode:
authorPaul Wicking <[email protected]>2020-06-10 07:22:27 +0200
committerPaul Wicking <[email protected]>2020-06-10 07:47:37 +0200
commitf3c402a6df0060dc4d0f3013c5d1fa31960dba7c (patch)
tree9d6a8815d703f4c8d7335fc03f1c66826fdc862f /src/gui/doc/snippets/dragging/mainwindow.h
parentc208b648f91da5139b8eda0c239201768f9d4059 (diff)
Doc snippets: Use nullptr instead of 0 literal
Also mark constructors explicit, where applicable. Pick-to: 5.15 Fixes: QTBUG-84859 Change-Id: I145d366d854fd6b4373bcc23d0b880d6361d9014 Reviewed-by: Marc Mutz <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/dragging/mainwindow.h')
-rw-r--r--src/gui/doc/snippets/dragging/mainwindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/doc/snippets/dragging/mainwindow.h b/src/gui/doc/snippets/dragging/mainwindow.h
index 8a8e43b2231..fd7f659b2da 100644
--- a/src/gui/doc/snippets/dragging/mainwindow.h
+++ b/src/gui/doc/snippets/dragging/mainwindow.h
@@ -65,7 +65,7 @@ class MainWindow : public QMainWindow
Q_OBJECT
public:
- MainWindow(QWidget *parent = 0);
+ explicit MainWindow(QWidget *parent = nullptr);
protected:
void mousePressEvent(QMouseEvent *event) override;