diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-06-21 22:55:13 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-22 21:24:13 +0200 |
commit | 880fdff795f403759ccdf347226828f7a5bd54ed (patch) | |
tree | 41a232cf416888652e3ff1ef8116d472621731ed /src/qml/types/qqmldelegatemodel.cpp | |
parent | 957fe59e2b4f0fcb258fcd48d27ed98a1ed2a18b (diff) |
Remove context parameter from Managed::getIndexed
Change-Id: Ibc6271dbe789ef5ed063d8650ee36978f7c18021
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmldelegatemodel.cpp')
-rw-r--r-- | src/qml/types/qqmldelegatemodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/types/qqmldelegatemodel.cpp b/src/qml/types/qqmldelegatemodel.cpp index 8effbd81b9..b6824252a4 100644 --- a/src/qml/types/qqmldelegatemodel.cpp +++ b/src/qml/types/qqmldelegatemodel.cpp @@ -3106,11 +3106,12 @@ public: virtual quint32 count() const = 0; virtual const QQmlChangeSet::Change &at(int index) const = 0; - static QV4::Value getIndexed(QV4::Managed *m, QV4::ExecutionContext *ctx, uint index, bool *hasProperty) + static QV4::Value getIndexed(QV4::Managed *m, uint index, bool *hasProperty) { + QV4::ExecutionEngine *v4 = m->engine(); QQmlDelegateModelGroupChangeArray *array = m->as<QQmlDelegateModelGroupChangeArray>(); if (!array) - ctx->throwTypeError(); + v4->current->throwTypeError(); if (index >= array->count()) { if (hasProperty) @@ -3120,8 +3121,7 @@ public: const QQmlChangeSet::Change &change = array->at(index); - QV4::Object *changeProto = engineData(array->engine()->v8Engine)->changeProto.value().asObject(); - QV4::ExecutionEngine *v4 = changeProto->engine(); + QV4::Object *changeProto = engineData(v4->v8Engine)->changeProto.value().asObject(); QQmlDelegateModelGroupChange *object = new (v4->memoryManager) QQmlDelegateModelGroupChange(v4); object->prototype = changeProto; object->change = change; |