diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-07 13:05:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-07 23:02:47 +0200 |
commit | 564b59d903683b14c75b72a3e93367717f201def (patch) | |
tree | 03ffe749d83dce84429a7db484bf92795047036f /tests/auto/other/gestures | |
parent | b5fc1e4e2643e73d3b44c483d159529f8deb8af1 (diff) |
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 <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/other/gestures')
-rw-r--r-- | tests/auto/other/gestures/tst_gestures.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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) |