aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-03 14:14:57 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-03 14:40:38 +0200
commite537722604e41577dbf5625a35542a88d2576d63 (patch)
tree8dcade24c43e2e02fe5d01f3ec161621cc28fc52 /src/qml/qml/qqmlvmemetaobject.cpp
parentbf51873870f94f56e8dccf25fea67b120f2db98f (diff)
Remove v8::HandleScope
This class never made sense with v4... :) Change-Id: Id597d791d1adf52cc821d6d46f57cb24d1acd343 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r--src/qml/qml/qqmlvmemetaobject.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp
index 64859e401f..db742830ce 100644
--- a/src/qml/qml/qqmlvmemetaobject.cpp
+++ b/src/qml/qml/qqmlvmemetaobject.cpp
@@ -705,7 +705,6 @@ int QQmlVMEMetaObject::metaCall(QMetaObject::Call c, int _id, void **a)
QQmlEnginePrivate *ep = (ctxt == 0 || ctxt->engine == 0) ? 0 : QQmlEnginePrivate::get(ctxt->engine);
QV8Engine *v8e = (ep == 0) ? 0 : ep->v8engine();
if (v8e) {
- v8::HandleScope handleScope;
if (c == QMetaObject::ReadProperty) {
*reinterpret_cast<QVariant *>(a[0]) = readPropertyAsVariant(id);
} else if (c == QMetaObject::WriteProperty) {
@@ -931,7 +930,6 @@ int QQmlVMEMetaObject::metaCall(QMetaObject::Call c, int _id, void **a)
QQmlVMEMetaData::MethodData *data = metaData->methodData() + id;
- v8::HandleScope handle_scope;
v8::Handle<v8::Value> *args = 0;
if (data->parameterCount) {
@@ -1232,7 +1230,6 @@ bool QQmlVMEMetaObject::ensureVarPropertiesAllocated()
// see also: QV8GCCallback::garbageCollectorPrologueCallback()
void QQmlVMEMetaObject::allocateVarPropertiesArray()
{
- v8::HandleScope handleScope;
varProperties = qPersistentNew(v8::Array::New(metaData->varPropertyCount));
varProperties.MakeWeak(static_cast<void*>(this), VarPropertiesWeakReferenceCallback);
varPropertiesInitialized = true;