From 1629fa0c6c000127d84956c0604804a896e8f9bf Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 30 Jun 2021 11:28:32 +0200 Subject: Use nullptr rather than 0 for null pointers Change-Id: I2921298ad2e04001bdee8824c56f01c203efb7d6 Reviewed-by: Fabian Kosmale Reviewed-by: Andrei Golubev Reviewed-by: Shawn Rutledge --- .../qml/tutorials/extending-qml/chapter4-customPropertyTypes/piechart.h | 2 +- .../qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes') diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/piechart.h b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/piechart.h index 855ad7ae3a..885391c3a3 100644 --- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/piechart.h +++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/piechart.h @@ -67,7 +67,7 @@ class PieChart : public QQuickItem public: //![1] - PieChart(QQuickItem *parent = 0); + PieChart(QQuickItem *parent = nullptr); QString name() const; void setName(const QString &name); diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h index 6e64917851..9f8a66734b 100644 --- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h +++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h @@ -61,7 +61,7 @@ class PieSlice : public QQuickPaintedItem QML_ELEMENT public: - PieSlice(QQuickItem *parent = 0); + PieSlice(QQuickItem *parent = nullptr); QColor color() const; void setColor(const QColor &color); -- cgit v1.2.3