aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4qobjectwrapper.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-27 16:56:14 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-28 13:37:39 +0200
commitadf46bcc1bca69eca900d7737c58d0fe1f75bd0e (patch)
treebd6e9df3fab2e1b95e3c138569f62b264746997f /src/qml/jsruntime/qv4qobjectwrapper.cpp
parent2d5e4a893db981445fa73a6af1a02a07d80e0642 (diff)
Fix compiler warnings from char*/QString conversion
Change-Id: I904c123f73a6c398d45215a976652a0712ce40fa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 5df7323a45..62a3c9f025 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -523,7 +523,8 @@ void QObjectWrapper::setProperty(ExecutionEngine *engine, QObject *object, QQmlP
targetObject->metaObject()->metacall(targetObject, QMetaObject::BindableProperty, targetIndex.coreIndex(), &argv);
bool ok = bindable.setBinding(binding);
if (!ok) {
- auto error = QStringLiteral("Failed to set binding on %1::%2.").arg(object->metaObject()->className(), property->name(object));
+ auto error = QStringLiteral("Failed to set binding on %1::%2.").
+ arg(QString::fromUtf8(object->metaObject()->className()), property->name(object));
scope.engine->throwError(error);
}
} else {