aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-15 16:09:09 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-18 12:39:28 +0200
commit72c3befaa24e7e6021898061b5bc5389554e7126 (patch)
tree5aedde3f9e942a5fbb4b25ac03138d4ede5dceea /examples/quickcontrols2
parente7618dba5b4e4b59331693e7b3a38601822b6ffb (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/quickcontrols2')
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h2
4 files changed, 4 insertions, 4 deletions
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);