From 3cc226ffe74a45509746dddb4e72457f1651be56 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 19 Aug 2019 11:01:17 +0200 Subject: Reference Examples: Use nullptr Change-Id: I325cfdcf488e9d238e618ca23ef40aedf7c5eec1 Reviewed-by: Simon Hausmann --- examples/qml/referenceexamples/binding/happybirthdaysong.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/qml/referenceexamples/binding/happybirthdaysong.h') diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.h b/examples/qml/referenceexamples/binding/happybirthdaysong.h index ab264b80c7..6960c7a330 100644 --- a/examples/qml/referenceexamples/binding/happybirthdaysong.h +++ b/examples/qml/referenceexamples/binding/happybirthdaysong.h @@ -61,7 +61,7 @@ class HappyBirthdaySong : public QObject, public QQmlPropertyValueSource Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) Q_INTERFACES(QQmlPropertyValueSource) public: - HappyBirthdaySong(QObject *parent = 0); + HappyBirthdaySong(QObject *parent = nullptr); virtual void setTarget(const QQmlProperty &); -- cgit v1.2.3 From adcb79025af8bd46a13efd4b884ff2feff64f477 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 19 Aug 2019 11:06:39 +0200 Subject: Reference Examples: Use override for overridden virtual functions Change-Id: I9f4225bf312856d08fd08431353f3cb36d0f7fa5 Reviewed-by: Fabian Kosmale Reviewed-by: Simon Hausmann --- examples/qml/referenceexamples/binding/happybirthdaysong.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/qml/referenceexamples/binding/happybirthdaysong.h') diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.h b/examples/qml/referenceexamples/binding/happybirthdaysong.h index 6960c7a330..dcfebc06ba 100644 --- a/examples/qml/referenceexamples/binding/happybirthdaysong.h +++ b/examples/qml/referenceexamples/binding/happybirthdaysong.h @@ -63,7 +63,7 @@ class HappyBirthdaySong : public QObject, public QQmlPropertyValueSource public: HappyBirthdaySong(QObject *parent = nullptr); - virtual void setTarget(const QQmlProperty &); + void setTarget(const QQmlProperty &) override; QString name() const; void setName(const QString &); -- cgit v1.2.3