diff options
Diffstat (limited to 'src/imports/xmllistmodel/qqmlxmllistmodel.cpp')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index f87273be40..2991bd9755 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -926,7 +926,8 @@ QQmlV4Handle QQuickXmlListModel::get(int index) const Scope scope(v4engine); Scoped<Object> o(scope, v4engine->newObject()); for (int ii = 0; ii < d->roleObjects.count(); ++ii) { - Property *p = o->insertMember(v4engine->newIdentifier(d->roleObjects[ii]->name()), PropertyAttributes()); + ScopedString name(scope, v4engine->newIdentifier(d->roleObjects[ii]->name())); + Property *p = o->insertMember(name, PropertyAttributes()); p->value = Value::fromReturnedValue(v8engine->fromVariant(d->data.value(ii).value(index))); } |