diff options
author | Ulf Hermann <[email protected]> | 2019-08-19 11:01:17 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2019-08-20 08:42:30 +0200 |
commit | 3cc226ffe74a45509746dddb4e72457f1651be56 (patch) | |
tree | 3ba6f8918ee0181564743897a28484bf358823ed /examples/qml/referenceexamples/attached | |
parent | 66fabff2530f2080c07bcf89a47474daea4c7c38 (diff) |
Reference Examples: Use nullptr
Change-Id: I325cfdcf488e9d238e618ca23ef40aedf7c5eec1
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'examples/qml/referenceexamples/attached')
-rw-r--r-- | examples/qml/referenceexamples/attached/birthdayparty.h | 2 | ||||
-rw-r--r-- | examples/qml/referenceexamples/attached/person.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/referenceexamples/attached/birthdayparty.h b/examples/qml/referenceexamples/attached/birthdayparty.h index 0684f16255..15375f14d9 100644 --- a/examples/qml/referenceexamples/attached/birthdayparty.h +++ b/examples/qml/referenceexamples/attached/birthdayparty.h @@ -76,7 +76,7 @@ class BirthdayParty : public QObject Q_PROPERTY(QQmlListProperty<Person> guests READ guests) Q_CLASSINFO("DefaultProperty", "guests") public: - BirthdayParty(QObject *parent = 0); + BirthdayParty(QObject *parent = nullptr); Person *host() const; void setHost(Person *); diff --git a/examples/qml/referenceexamples/attached/person.h b/examples/qml/referenceexamples/attached/person.h index 9b63773d49..2398da38bf 100644 --- a/examples/qml/referenceexamples/attached/person.h +++ b/examples/qml/referenceexamples/attached/person.h @@ -87,7 +87,7 @@ class Person : public QObject Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(ShoeDescription *shoe READ shoe) public: - Person(QObject *parent = 0); + Person(QObject *parent = nullptr); QString name() const; void setName(const QString &); @@ -102,14 +102,14 @@ class Boy : public Person { Q_OBJECT public: - Boy(QObject * parent = 0); + Boy(QObject * parent = nullptr); }; class Girl : public Person { Q_OBJECT public: - Girl(QObject * parent = 0); + Girl(QObject * parent = nullptr); }; #endif // PERSON_H |