aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvme.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-11-02 11:18:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-09 15:09:22 +0100
commite4ff64343c0df1af0f653489735d85ec5de1bd39 (patch)
treec00f7f5a29741c5df069a1b109f4047e0c1a555d /src/qml/qml/qqmlvme.cpp
parent4f63f43cf2da59c2e87ae96e8bd84950490a070b (diff)
Fix a few more compiler warnings in release builds
Change-Id: I826226b7ddd4a74037b5bbe9a4a7322d404f53a9 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvme.cpp')
-rw-r--r--src/qml/qml/qqmlvme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp
index 7c27d77b2e..983136a846 100644
--- a/src/qml/qml/qqmlvme.cpp
+++ b/src/qml/qml/qqmlvme.cpp
@@ -400,8 +400,8 @@ QObject *QQmlVME::run(QList<QQmlError> *errors,
QML_STORE_PROVIDER_VALUE(StoreColor, QMetaType::QColor, instr.value);
QML_STORE_VALUE(StoreDate, QDate, QDate::fromJulianDay(instr.value));
QML_STORE_VALUE(StoreDateTime, QDateTime,
- QDateTime(QDate::fromJulianDay(instr.date), *(QTime *)&instr.time));
- QML_STORE_POINTER(StoreTime, (QTime *)&instr.time);
+ QDateTime(QDate::fromJulianDay(instr.date), QTime::fromMSecsSinceStartOfDay(instr.time)));
+ QML_STORE_VALUE(StoreTime, QTime, QTime::fromMSecsSinceStartOfDay(instr.time));
QML_STORE_POINTER(StorePoint, (QPoint *)&instr.point);
QML_STORE_POINTER(StorePointF, (QPointF *)&instr.point);
QML_STORE_POINTER(StoreSize, (QSize *)&instr.size);