aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dateobject.cpp
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.cpp
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.cpp')
-rw-r--r--src/qml/jsruntime/qv4dateobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp
index e75d8bc740..447f5b9661 100644
--- a/src/qml/jsruntime/qv4dateobject.cpp
+++ b/src/qml/jsruntime/qv4dateobject.cpp
@@ -747,7 +747,7 @@ void Heap::DateObject::init(const QDateTime &date)
this->date = date.isValid() ? TimeClip(date.toMSecsSinceEpoch()) : qt_qnan();
}
-void Heap::DateObject::init(const QTime &time)
+void Heap::DateObject::init(QTime time)
{
Object::init();
if (!time.isValid()) {