diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-30 15:33:31 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-09-01 16:57:01 +0200 |
commit | 572882fd67d8d4ca138f6ae75150ed6188aaa7c6 (patch) | |
tree | edc32a44ed905c2ad21b189a19740b0bfba252ff /examples/qml/referenceexamples/signal/birthdayparty.cpp | |
parent | fa031668714cfd7e0df490a8378af2bfc87ea8cf (diff) |
Example: Pass QDate, QTime by value, not by const reference
They're value types, packaging qint64 and int, repsectively.
Change-Id: Icf18794466cd140e1384d6dd0de736fbb2c05a48
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/signal/birthdayparty.cpp')
-rw-r--r-- | examples/qml/referenceexamples/signal/birthdayparty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/referenceexamples/signal/birthdayparty.cpp b/examples/qml/referenceexamples/signal/birthdayparty.cpp index 405c8af940..215c09782a 100644 --- a/examples/qml/referenceexamples/signal/birthdayparty.cpp +++ b/examples/qml/referenceexamples/signal/birthdayparty.cpp @@ -59,7 +59,7 @@ QDate BirthdayPartyAttached::rsvp() const return m_rsvp; } -void BirthdayPartyAttached::setRsvp(const QDate &d) +void BirthdayPartyAttached::setRsvp(QDate d) { m_rsvp = d; } |