From 564b59d903683b14c75b72a3e93367717f201def Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 7 Oct 2020 13:05:48 +0200 Subject: Another round of replacing 0 with nullptr This time based on grepping to also include documentation, tests and examples previously missed by the automatic tool. Change-Id: Ied1703f4bcc470fbc275f759ed5b7c588a5c4e9f Reviewed-by: Qt CI Bot Reviewed-by: Friedemann Kleint --- tests/auto/other/gestures/tst_gestures.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auto/other/gestures') diff --git a/tests/auto/other/gestures/tst_gestures.cpp b/tests/auto/other/gestures/tst_gestures.cpp index fe95120656..1dfd1f977b 100644 --- a/tests/auto/other/gestures/tst_gestures.cpp +++ b/tests/auto/other/gestures/tst_gestures.cpp @@ -54,7 +54,7 @@ class CustomGesture : public QGesture public: static Qt::GestureType GestureType; - CustomGesture(QObject *parent = 0) + CustomGesture(QObject *parent = nullptr) : QGesture(parent), serial(0) { } @@ -183,7 +183,7 @@ class GestureWidget : public QWidget { Q_OBJECT public: - GestureWidget(const char *name = 0, QWidget *parent = 0) + GestureWidget(const char *name = nullptr, QWidget *parent = nullptr) : QWidget(parent) { if (name) @@ -1395,7 +1395,7 @@ void tst_Gestures::ungrabGesture() // a method on QWidget { class MockGestureWidget : public GestureWidget { public: - MockGestureWidget(const char *name = 0, QWidget *parent = 0) + MockGestureWidget(const char *name = nullptr, QWidget *parent = nullptr) : GestureWidget(name, parent) { } @@ -1924,7 +1924,7 @@ void tst_Gestures::deleteGestureTargetItem() class GraphicsView : public QGraphicsView { public: - GraphicsView(QGraphicsScene *scene, QWidget *parent = 0) + GraphicsView(QGraphicsScene *scene, QWidget *parent = nullptr) : QGraphicsView(scene, parent) { } @@ -2124,7 +2124,7 @@ private: class ReuseCanceledGesturesWidget : public QGraphicsWidget { public: - ReuseCanceledGesturesWidget(Qt::GestureType gestureType = Qt::TapGesture, QGraphicsItem *parent = 0) + ReuseCanceledGesturesWidget(Qt::GestureType gestureType = Qt::TapGesture, QGraphicsItem *parent = nullptr) : QGraphicsWidget(parent), m_gestureType(gestureType), m_started(0), m_updated(0), m_canceled(0), m_finished(0) -- cgit v1.2.3