aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmllistwrapper.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-21 23:26:11 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 21:32:34 +0200
commit40b4ff80ccd2b9dfdaf9af89a962407813e9d810 (patch)
treee1cf7984f9750e953b92c6462edcec00c7bae774 /src/qml/qml/qqmllistwrapper.cpp
parent880fdff795f403759ccdf347226828f7a5bd54ed (diff)
Remove context parameter from Managed::get()
Change-Id: I61837e4b17d7475dcda2f31b8a293c0020930d52 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmllistwrapper.cpp')
-rw-r--r--src/qml/qml/qqmllistwrapper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/qml/qqmllistwrapper.cpp b/src/qml/qml/qqmllistwrapper.cpp
index 639a5a585b..aba6b6c192 100644
--- a/src/qml/qml/qqmllistwrapper.cpp
+++ b/src/qml/qml/qqmllistwrapper.cpp
@@ -97,13 +97,14 @@ QVariant QmlListWrapper::toVariant() const
}
-Value QmlListWrapper::get(Managed *m, ExecutionContext *ctx, String *name, bool *hasProperty)
+Value QmlListWrapper::get(Managed *m, String *name, bool *hasProperty)
{
+ QV4::ExecutionEngine *v4 = m->engine();
QmlListWrapper *w = m->as<QmlListWrapper>();
if (!w)
- ctx->throwTypeError();
+ v4->current->throwTypeError();
- if (name == ctx->engine->id_length && !w->object.isNull()) {
+ if (name == v4->id_length && !w->object.isNull()) {
quint32 count = w->property.count ? w->property.count(&w->property) : 0;
return Value::fromUInt32(count);
}