From 4f98bf713f6604903c4fe61adc750b23c4407a18 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 6 Nov 2020 20:20:23 +0100 Subject: qtdeclarative: finish fixing compilation with explicit QChar(int) Change-Id: Idb26e2df6d4fe8940db57066a30fa8c243f6d2c9 Reviewed-by: Volker Hilsheimer --- src/qml/jsapi/qjsengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsapi/qjsengine.cpp') diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp index a96ded68f0..0363e9b76e 100644 --- a/src/qml/jsapi/qjsengine.cpp +++ b/src/qml/jsapi/qjsengine.cpp @@ -788,7 +788,7 @@ bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr) *reinterpret_cast(ptr) = QV4::Value::toUInt32(d); return true; case QMetaType::QChar: - *reinterpret_cast(ptr) = QV4::Value::toUInt32(d); + *reinterpret_cast(ptr) = QChar(QV4::Value::toUInt32(d)); return true; case QMetaType::Char16: *reinterpret_cast(ptr) = QV4::Value::toUInt32(d); -- cgit v1.2.3