diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-06-10 14:49:16 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-18 16:42:42 +0000 |
commit | fe9b63780da81fa8e3746e519dda320d57436503 (patch) | |
tree | 42147e0198befd5265e80578f7b1799b2b2b2640 /src/qml/jsruntime/qv4runtime.cpp | |
parent | d4801fc76a0dff43abd3c4f46fb34553c8c5efd1 (diff) |
Get rid of QQmlIdObjectsArray
The context wrapper can do this directly, and give access to the
array by index. Simplifies code, and is one less object we need
to allocate on the JS heap.
Change-Id: I9d9d3a47920e97c42234a27aa66cd5ae3cc28085
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index 4026be75e4..6d7aeafb77 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -1335,9 +1335,7 @@ ReturnedValue Runtime::regexpLiteral(ExecutionEngine *engine, int id) ReturnedValue Runtime::getQmlIdArray(NoThrowEngine *engine) { Q_ASSERT(engine->qmlContextObject()); - Scope scope(engine); - Scoped<QmlContextWrapper> wrapper(scope, engine->qmlContextObject()); - return wrapper->idObjectsArray(); + return engine->qmlContextObject()->asReturnedValue(); } ReturnedValue Runtime::getQmlContextObject(NoThrowEngine *engine) |