From 6589ea836177a7bfa20cc4f8c9afef14c887590a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Jun 2013 09:10:59 +0200 Subject: [PATCH] Remove v8 usage in two places Change-Id: I26343f3aaa89ea956a890955ce84894f96ebd67d Reviewed-by: Simon Hausmann --- src/qml/qml/v8/qv8engine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/qml/v8/qv8engine.cpp b/src/qml/qml/v8/qv8engine.cpp index 1a70352..841c5ab 100644 --- a/src/qml/qml/v8/qv8engine.cpp +++ b/src/qml/qml/v8/qv8engine.cpp @@ -277,9 +277,9 @@ QV4::Value QV8Engine::fromVariant(const QVariant &variant) case QMetaType::QStringList: { bool succeeded = false; - v8::Handle retn = QV4::SequencePrototype::fromVariant(m_v4Engine, variant, &succeeded); + QV4::Value retn = QV4::SequencePrototype::fromVariant(m_v4Engine, variant, &succeeded); if (succeeded) - return retn->v4Value(); + return retn; return arrayFromStringList(this, *reinterpret_cast(ptr)); } case QMetaType::QVariantList: @@ -329,9 +329,9 @@ QV4::Value QV8Engine::fromVariant(const QVariant &variant) return QV4::QObjectWrapper::wrap(m_v4Engine, obj); bool succeeded = false; - v8::Handle retn = QV4::SequencePrototype::fromVariant(m_v4Engine, variant, &succeeded); + QV4::Value retn = QV4::SequencePrototype::fromVariant(m_v4Engine, variant, &succeeded); if (succeeded) - return retn->v4Value(); + return retn; if (QQmlValueType *vt = QQmlValueTypeFactory::valueType(type)) return QV4::QmlValueTypeWrapper::create(this, variant, vt); -- 2.7.4