diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-08 15:56:03 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-08 19:55:58 +0200 |
commit | 2b0d3bf812273e762e7aa27a58909ade59590c0f (patch) | |
tree | 6475e09cfa3512a6bff77dd0947cd664a8b47ea0 /src/imports/xmllistmodel | |
parent | 2b01b808e75041005bca903cf50f528716e285e3 (diff) |
Remove v8 dependencies from QQmlV4Handle
Change-Id: I87d2183738ec7cfeea846a28f2b9aed79a233f68
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports/xmllistmodel')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index 77c04bed61..e814eda04b 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -919,7 +919,7 @@ QQmlV4Handle QQuickXmlListModel::get(int index) const Q_D(const QQuickXmlListModel); if (index < 0 || index >= count()) - return QQmlV4Handle::fromValue(Value::undefinedValue()); + return QQmlV4Handle(Value::undefinedValue()); QQmlEngine *engine = qmlContext(this)->engine(); QV8Engine *v8engine = QQmlEnginePrivate::getV8Engine(engine); @@ -930,7 +930,7 @@ QQmlV4Handle QQuickXmlListModel::get(int index) const p->value = v8engine->fromVariant(d->data.value(ii).value(index)); } - return QQmlV4Handle::fromValue(Value::fromObject(o)); + return QQmlV4Handle(Value::fromObject(o)); } /*! |