diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-30 15:39:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-09-01 16:57:16 +0200 |
commit | ded100644e0f1a3e4eeedfb635c91ba76175b635 (patch) | |
tree | c7b83748e32b88c4170dd154af9087c14f52edfb /tests/auto/qml/qqmlecmascript | |
parent | 5234bed6a242d827799571db4fe7fd94b54df4db (diff) |
Tests: pass QDate and QTime by value rather than const reference
They've value types, packaging qint64 and int respectively.
Change-Id: Ia9a96748f9423139f41df720ce987ce96435beca
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/testtypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.h b/tests/auto/qml/qqmlecmascript/testtypes.h index 922bef0ead..3813cdbe24 100644 --- a/tests/auto/qml/qqmlecmascript/testtypes.h +++ b/tests/auto/qml/qqmlecmascript/testtypes.h @@ -608,7 +608,7 @@ public: QDate dateProperty() const { return datePropertyValue; } - void setDateProperty(const QDate &v) { + void setDateProperty(QDate v) { datePropertyValue = v; } @@ -616,7 +616,7 @@ public: QTime timeProperty() const { return timePropertyValue; } - void setTimeProperty(const QTime &v) { + void setTimeProperty(QTime v) { timePropertyValue = v; } |