From: Lars Knoll Date: Wed, 12 Jun 2013 07:10:59 +0000 (+0200) Subject: Remove v8 usage in two places X-Git-Tag: upstream/5.2.1~669^2~263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6589ea836177a7bfa20cc4f8c9afef14c887590a;p=platform%2Fupstream%2Fqtdeclarative.git Remove v8 usage in two places Change-Id: I26343f3aaa89ea956a890955ce84894f96ebd67d Reviewed-by: Simon Hausmann --- 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);