diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-25 09:55:17 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-26 15:45:10 +0100 |
commit | 79e1b8da0626e9b291a4db9339dd41560ec31ae0 (patch) | |
tree | 685fc2639becaec2556f264ae16ba3b700a63afc /src/qml/qml/qqmlglobal.cpp | |
parent | c9d04f0fa1d7ea62509c1d041aa4e0692a8c4ba2 (diff) |
QML: Fix casting between builtin types when constructing value types
Amends commit 3195b44e1c9678584c05ed823aab2eb32518d868.
Task-number: QTBUG-108789
Change-Id: Ie11c48d64e7984ee0e1982cb9e8241b815d8c49c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlglobal.cpp')
-rw-r--r-- | src/qml/qml/qqmlglobal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlglobal.cpp b/src/qml/qml/qqmlglobal.cpp index c29b0fd1f0..265b26b1e0 100644 --- a/src/qml/qml/qqmlglobal.cpp +++ b/src/qml/qml/qqmlglobal.cpp @@ -144,7 +144,7 @@ static bool fromMatchingType( // At this point, s should be a builtin type. For builtin types // the QMetaType converters are good enough. if (QMetaType::convert(sourceMetaType, s.constData(), parameterType, parameter.data())) { - callConstructor(mo, i, s.data(), metaType, data); + callConstructor(mo, i, parameter.data(), metaType, data); return true; } } |