From 62d1b5a08aa2c21c95a2a77afbe34c38ed37a2aa Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 26 Sep 2013 13:05:25 +0200 Subject: Fix API for Object::define*Property use ValueRef instead of const Value &. Change-Id: I3fd0ca829870db27f036825d713c53dc0600be07 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlxmlhttprequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp') diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index 9104c4b55e..84e99e6846 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -1632,7 +1632,7 @@ struct QQmlXMLHttpRequestCtor : public FunctionObject if (!proto) setupProto(); ScopedString s(scope, engine->id_prototype); - defineDefaultProperty(s, Value::fromObject(proto)); + defineDefaultProperty(s, ScopedObject(scope, proto)); } ~QQmlXMLHttpRequestCtor() {} @@ -1986,7 +1986,7 @@ void *qt_add_qmlxmlhttprequest(QV8Engine *engine) Scoped ctor(scope, new (v4->memoryManager) QQmlXMLHttpRequestCtor(v4)); ScopedString s(scope, v4->newString(QStringLiteral("XMLHttpRequest"))); - v4->globalObject->defineReadonlyProperty(s, ctor.asValue()); + v4->globalObject->defineReadonlyProperty(s, ctor); QQmlXMLHttpRequestData *data = new QQmlXMLHttpRequestData; return data; -- cgit v1.2.3