summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-14 08:55:20 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-14 08:55:20 (GMT)
commit57295fb967cd7d50a1e4113edf995b9592d1576f (patch)
tree4805c52028407a0376738070749c182e11547591 /src/declarative/qml/qdeclarativeobjectscriptclass.cpp
parent740e1f88da76b9d52bc0b5600b808e91cec97f73 (diff)
downloadQt-57295fb967cd7d50a1e4113edf995b9592d1576f.zip
Qt-57295fb967cd7d50a1e4113edf995b9592d1576f.tar.gz
Qt-57295fb967cd7d50a1e4113edf995b9592d1576f.tar.bz2
Fix compile warnings.
Reviewed-by: Thomas Hartmann <thomas.hartmann@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativeobjectscriptclass.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeobjectscriptclass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
index 9d74238..ab6ff74 100644
--- a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
+++ b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
@@ -843,7 +843,7 @@ QDeclarativeObjectMethodScriptClass::Value QDeclarativeObjectMethodScriptClass::
for (int ii = 0; ii < argTypeNames.count(); ++ii) {
argTypes[ii] = QMetaType::type(argTypeNames.at(ii));
if (argTypes[ii] == QVariant::Invalid)
- argTypes[ii] = enumType(method->object->metaObject(), argTypeNames.at(ii));
+ argTypes[ii] = enumType(method->object->metaObject(), QString::fromLatin1(argTypeNames.at(ii)));
if (argTypes[ii] == QVariant::Invalid)
return Value(ctxt, ctxt->throwError(QString::fromLatin1("Unknown method parameter type: %1").arg(QLatin1String(argTypeNames.at(ii)))));
}