diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-15 16:09:09 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-18 12:39:28 +0200 |
commit | 72c3befaa24e7e6021898061b5bc5389554e7126 (patch) | |
tree | 5aedde3f9e942a5fbb4b25ac03138d4ede5dceea /examples | |
parent | e7618dba5b4e4b59331693e7b3a38601822b6ffb (diff) |
Replace 0 pointer constants with nullptr
Replaced in most common patterns.
Change-Id: Idcaff1f2e915f29922702d3600a2e5f1e2418a7a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples')
7 files changed, 7 insertions, 7 deletions
diff --git a/examples/quick/models/abstractitemmodel/model.h b/examples/quick/models/abstractitemmodel/model.h index 186388c96f..d9abff7ce9 100644 --- a/examples/quick/models/abstractitemmodel/model.h +++ b/examples/quick/models/abstractitemmodel/model.h @@ -75,7 +75,7 @@ public: SizeRole }; - AnimalModel(QObject *parent = 0); + AnimalModel(QObject *parent = nullptr); //![1] void addAnimal(const Animal &animal); diff --git a/examples/quick/scenegraph/custommaterial/customitem.h b/examples/quick/scenegraph/custommaterial/customitem.h index 5cc1fa09f4..800f5a041f 100644 --- a/examples/quick/scenegraph/custommaterial/customitem.h +++ b/examples/quick/scenegraph/custommaterial/customitem.h @@ -65,7 +65,7 @@ class CustomItem : public QQuickItem QML_ELEMENT public: - explicit CustomItem(QQuickItem *parent = 0); + explicit CustomItem(QQuickItem *parent = nullptr); qreal zoom() const { diff --git a/examples/quick/scenegraph/twotextureproviders/xorblender.h b/examples/quick/scenegraph/twotextureproviders/xorblender.h index 17557b8efd..0f45e7f7fa 100644 --- a/examples/quick/scenegraph/twotextureproviders/xorblender.h +++ b/examples/quick/scenegraph/twotextureproviders/xorblender.h @@ -61,7 +61,7 @@ class XorBlender : public QQuickItem QML_ELEMENT public: - explicit XorBlender(QQuickItem *parent = 0); + explicit XorBlender(QQuickItem *parent = nullptr); QQuickItem *source1() const { return m_source1; } QQuickItem *source2() const { return m_source2; } diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h b/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h index fdbe5f1e70..5953c76258 100644 --- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h +++ b/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h @@ -56,7 +56,7 @@ class SqlContactModel : public QSqlQueryModel { public: - SqlContactModel(QObject *parent = 0); + SqlContactModel(QObject *parent = nullptr); }; #endif // SQLCONTACTMODEL_H diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h b/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h index 14ab12e262..9c65d64a84 100644 --- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h +++ b/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h @@ -59,7 +59,7 @@ class SqlConversationModel : public QSqlTableModel Q_PROPERTY(QString recipient READ recipient WRITE setRecipient NOTIFY recipientChanged) public: - SqlConversationModel(QObject *parent = 0); + SqlConversationModel(QObject *parent = nullptr); QString recipient() const; void setRecipient(const QString &recipient); diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h index fdbe5f1e70..5953c76258 100644 --- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h +++ b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h @@ -56,7 +56,7 @@ class SqlContactModel : public QSqlQueryModel { public: - SqlContactModel(QObject *parent = 0); + SqlContactModel(QObject *parent = nullptr); }; #endif // SQLCONTACTMODEL_H diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h index 14ab12e262..9c65d64a84 100644 --- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h +++ b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h @@ -59,7 +59,7 @@ class SqlConversationModel : public QSqlTableModel Q_PROPERTY(QString recipient READ recipient WRITE setRecipient NOTIFY recipientChanged) public: - SqlConversationModel(QObject *parent = 0); + SqlConversationModel(QObject *parent = nullptr); QString recipient() const; void setRecipient(const QString &recipient); |