aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmllistwrapper.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-21 22:55:13 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 21:24:13 +0200
commit880fdff795f403759ccdf347226828f7a5bd54ed (patch)
tree41a232cf416888652e3ff1ef8116d472621731ed /src/qml/qml/qqmllistwrapper.cpp
parent957fe59e2b4f0fcb258fcd48d27ed98a1ed2a18b (diff)
Remove context parameter from Managed::getIndexed
Change-Id: Ibc6271dbe789ef5ed063d8650ee36978f7c18021 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmllistwrapper.cpp')
-rw-r--r--src/qml/qml/qqmllistwrapper.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qml/qml/qqmllistwrapper.cpp b/src/qml/qml/qqmllistwrapper.cpp
index 719119cc05..639a5a585b 100644
--- a/src/qml/qml/qqmllistwrapper.cpp
+++ b/src/qml/qml/qqmllistwrapper.cpp
@@ -110,20 +110,21 @@ Value QmlListWrapper::get(Managed *m, ExecutionContext *ctx, String *name, bool
uint idx = name->asArrayIndex();
if (idx != UINT_MAX)
- return getIndexed(m, ctx, idx, hasProperty);
+ return getIndexed(m, idx, hasProperty);
return Value::undefinedValue();
}
-Value QmlListWrapper::getIndexed(Managed *m, ExecutionContext *ctx, uint index, bool *hasProperty)
+Value QmlListWrapper::getIndexed(Managed *m, uint index, bool *hasProperty)
{
+ QV4::ExecutionEngine *e = m->engine();
QmlListWrapper *w = m->as<QmlListWrapper>();
if (!w)
- ctx->throwTypeError();
+ e->current->throwTypeError();
quint32 count = w->property.count ? w->property.count(&w->property) : 0;
if (index < count && w->property.at)
- return QV4::QObjectWrapper::wrap(ctx->engine, w->property.at(&w->property, index));
+ return QV4::QObjectWrapper::wrap(e, w->property.at(&w->property, index));
return Value::undefinedValue();
}