diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-30 11:28:32 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-30 14:16:49 +0200 |
commit | 1629fa0c6c000127d84956c0604804a896e8f9bf (patch) | |
tree | cd8bcfde2bfad7647da97d4a6365d6e97a8c3844 /examples/qml/tutorials/extending-qml/chapter5-listproperties | |
parent | 8635e5b300298c01ada7dc51bfca76c3f02bfc14 (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/qml/tutorials/extending-qml/chapter5-listproperties')
-rw-r--r-- | examples/qml/tutorials/extending-qml/chapter5-listproperties/piechart.h | 2 | ||||
-rw-r--r-- | examples/qml/tutorials/extending-qml/chapter5-listproperties/pieslice.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/piechart.h b/examples/qml/tutorials/extending-qml/chapter5-listproperties/piechart.h index 236fa6796f..917d5f992f 100644 --- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/piechart.h +++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/piechart.h @@ -66,7 +66,7 @@ class PieChart : public QQuickItem //![1] 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/chapter5-listproperties/pieslice.h b/examples/qml/tutorials/extending-qml/chapter5-listproperties/pieslice.h index 0b290851f0..89f23ea8a8 100644 --- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/pieslice.h +++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/pieslice.h @@ -64,7 +64,7 @@ class PieSlice : public QQuickPaintedItem //![0] public: - PieSlice(QQuickItem *parent = 0); + PieSlice(QQuickItem *parent = nullptr); QColor color() const; void setColor(const QColor &color); |