summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-26 05:47:12 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-26 05:48:03 (GMT)
commitee0c9c7003dc020113886070b5c04dc0a7529bf4 (patch)
tree4bcb10b46991161a59a784db65c13b9dfe34ce0a /src/declarative/qml/qmlvmemetaobject.cpp
parent7eddab2dc75c79b05d86e2e4b48ac9f4cf102406 (diff)
downloadQt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.zip
Qt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.tar.gz
Qt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.tar.bz2
Fix more warnings.
Diffstat (limited to 'src/declarative/qml/qmlvmemetaobject.cpp')
-rw-r--r--src/declarative/qml/qmlvmemetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvmemetaobject.cpp b/src/declarative/qml/qmlvmemetaobject.cpp
index a627bf9..3e1d931 100644
--- a/src/declarative/qml/qmlvmemetaobject.cpp
+++ b/src/declarative/qml/qmlvmemetaobject.cpp
@@ -278,7 +278,7 @@ int QmlVMEMetaObject::metaCall(QMetaObject::Call c, int _id, void **a)
QMetaMethod m = method(_id);
QList<QByteArray> names = m.parameterNames();
for (int ii = 0; ii < names.count(); ++ii)
- newCtxt.setContextProperty(names.at(ii), *(QVariant *)a[ii + 1]);
+ newCtxt.setContextProperty(QString::fromLatin1(names.at(ii)), *(QVariant *)a[ii + 1]);
QmlExpression expr(&newCtxt, code, object);
expr.setTrackChange(false);
expr.value();