aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-30 15:39:09 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-09-01 16:57:16 +0200
commitded100644e0f1a3e4eeedfb635c91ba76175b635 (patch)
treec7b83748e32b88c4170dd154af9087c14f52edfb /tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
parent5234bed6a242d827799571db4fe7fd94b54df4db (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/qqmlqt/tst_qqmlqt.cpp')
-rw-r--r--tests/auto/qml/qqmlqt/tst_qqmlqt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp b/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
index d19b297aa7..9dd53b78e7 100644
--- a/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
+++ b/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
@@ -1288,12 +1288,12 @@ class TimeProvider: public QObject
Q_PROPERTY(QTime time READ time WRITE setTime NOTIFY timeChanged)
public:
- TimeProvider(const QTime &t)
+ TimeProvider(QTime t)
: m_getTime(t)
{}
QTime time() const { return m_getTime; }
- void setTime(const QTime &t) { m_putTime = t; emit timeChanged(); }
+ void setTime(QTime t) { m_putTime = t; emit timeChanged(); }
signals:
void timeChanged();