aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dateobject_p.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-30 15:41:03 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-09-01 16:56:42 +0200
commitfa031668714cfd7e0df490a8378af2bfc87ea8cf (patch)
tree880ed3f1082b32f0f7ecc5a75376697594184ba5 /src/qml/jsruntime/qv4dateobject_p.h
parent47ff10532ebd6c7b0cb62c46b0be3b3d7f6214b8 (diff)
V4 Date: pass QDate, QTime by value, not by const reference
They're value types, packaging qint64 and int respectively. Change-Id: I78a0097f77238751ac3ef9f928537f719a6d05d6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4dateobject_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h
index a87eb92caf..ed589f5b09 100644
--- a/src/qml/jsruntime/qv4dateobject_p.h
+++ b/src/qml/jsruntime/qv4dateobject_p.h
@@ -75,7 +75,7 @@ struct DateObject : Object {
this->date = date.toNumber();
}
void init(const QDateTime &date);
- void init(const QTime &time);
+ void init(QTime time);
double date;
};