aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-06-30 11:28:32 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-30 14:16:49 +0200
commit1629fa0c6c000127d84956c0604804a896e8f9bf (patch)
treecd8bcfde2bfad7647da97d4a6365d6e97a8c3844 /examples/quick
parent8635e5b300298c01ada7dc51bfca76c3f02bfc14 (diff)
Use nullptr rather than 0 for null pointers
Change-Id: I2921298ad2e04001bdee8824c56f01c203efb7d6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/customitems/maskedmousearea/maskedmousearea.h2
-rw-r--r--examples/quick/customitems/painteditem/textballoon.h2
-rw-r--r--examples/quick/quickwidgets/qquickviewcomparison/fbitem.h2
-rw-r--r--examples/quick/scenegraph/customgeometry/beziercurve.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/customitems/maskedmousearea/maskedmousearea.h b/examples/quick/customitems/maskedmousearea/maskedmousearea.h
index 39d78a019a..2a9655f0c3 100644
--- a/examples/quick/customitems/maskedmousearea/maskedmousearea.h
+++ b/examples/quick/customitems/maskedmousearea/maskedmousearea.h
@@ -65,7 +65,7 @@ class MaskedMouseArea : public QQuickItem
QML_ELEMENT
public:
- MaskedMouseArea(QQuickItem *parent = 0);
+ MaskedMouseArea(QQuickItem *parent = nullptr);
bool contains(const QPointF &point) const;
diff --git a/examples/quick/customitems/painteditem/textballoon.h b/examples/quick/customitems/painteditem/textballoon.h
index 129b0f7ee1..1bf96580e2 100644
--- a/examples/quick/customitems/painteditem/textballoon.h
+++ b/examples/quick/customitems/painteditem/textballoon.h
@@ -61,7 +61,7 @@ class TextBalloon : public QQuickPaintedItem
QML_ELEMENT
public:
- TextBalloon(QQuickItem *parent = 0);
+ TextBalloon(QQuickItem *parent = nullptr);
void paint(QPainter *painter);
bool isRightAligned() const;
diff --git a/examples/quick/quickwidgets/qquickviewcomparison/fbitem.h b/examples/quick/quickwidgets/qquickviewcomparison/fbitem.h
index 6270e7adff..573cfd7866 100644
--- a/examples/quick/quickwidgets/qquickviewcomparison/fbitem.h
+++ b/examples/quick/quickwidgets/qquickviewcomparison/fbitem.h
@@ -114,7 +114,7 @@ class FbItem : public QQuickFramebufferObject
QML_ELEMENT
public:
- explicit FbItem(QQuickItem *parent = 0);
+ explicit FbItem(QQuickItem *parent = nullptr);
QQuickFramebufferObject::Renderer *createRenderer() const override;
diff --git a/examples/quick/scenegraph/customgeometry/beziercurve.h b/examples/quick/scenegraph/customgeometry/beziercurve.h
index fd0085a08e..c796c0e5a7 100644
--- a/examples/quick/scenegraph/customgeometry/beziercurve.h
+++ b/examples/quick/scenegraph/customgeometry/beziercurve.h
@@ -69,7 +69,7 @@ class BezierCurve : public QQuickItem
//! [3]
public:
- BezierCurve(QQuickItem *parent = 0);
+ BezierCurve(QQuickItem *parent = nullptr);
~BezierCurve();
//! [2]