aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.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/qv4engine.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/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index 9cd558590f..7a858ed503 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -968,7 +968,7 @@ Heap::DateObject *ExecutionEngine::newDateObject(const QDateTime &dt)
return object->d();
}
-Heap::DateObject *ExecutionEngine::newDateObjectFromTime(const QTime &t)
+Heap::DateObject *ExecutionEngine::newDateObjectFromTime(QTime t)
{
Scope scope(this);
Scoped<DateObject> object(scope, memoryManager->allocate<DateObject>(t));