aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorOleg Shparber <trollixx@gmail.com>2014-12-31 10:37:47 -0800
committerOleg Shparber <trollixx@gmail.com>2015-01-03 23:29:57 +0100
commit2fe82c505d09fdf372f1d4c5992a3a0b0dc98f33 (patch)
tree3961702f98d9f553e4c90e9eb074a8096c48ad05 /src/qml/qml/qqmlxmlhttprequest.cpp
parent4a9ed3de7d92809cf575f245f55d4f422b4983c3 (diff)
Use QV4::ScopedObject typedef instead of actual type
Change-Id: I0b68c534ea513a7c230b12114f6b42b069f9864b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index c8b771e9f9..c2f8a84e56 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -65,7 +65,7 @@ using namespace QV4;
#ifndef QT_NO_XMLSTREAMREADER
#define V4THROW_REFERENCE(string) { \
- Scoped<Object> error(scope, ctx->engine()->newReferenceErrorObject(QStringLiteral(string))); \
+ ScopedObject error(scope, ctx->engine()->newReferenceErrorObject(QStringLiteral(string))); \
return ctx->engine()->throwError(error); \
}
@@ -97,7 +97,7 @@ static ReturnedValue constructMeObject(const ValueRef thisObj, QV8Engine *e)
{
ExecutionEngine *v4 = QV8Engine::getV4(e);
Scope scope(v4);
- Scoped<Object> meObj(scope, v4->newObject());
+ ScopedObject meObj(scope, v4->newObject());
meObj->put(ScopedString(scope, v4->newString(QStringLiteral("ThisObject"))), thisObj);
ScopedValue v(scope, QmlContextWrapper::qmlScope(e, e->callingContext(), 0));
meObj->put(ScopedString(scope, v4->newString(QStringLiteral("ActivationObject"))), v);
@@ -665,7 +665,7 @@ ReturnedValue Attr::prototype(ExecutionEngine *engine)
QQmlXMLHttpRequestData *d = xhrdata(engine->v8Engine);
if (d->attrPrototype.isUndefined()) {
Scope scope(engine);
- Scoped<Object> p(scope, engine->newObject());
+ ScopedObject p(scope, engine->newObject());
ScopedObject pp(scope);
p->setPrototype((pp = NodePrototype::getProto(engine)));
p->defineAccessorProperty(QStringLiteral("name"), method_name, 0);
@@ -726,7 +726,7 @@ ReturnedValue CharacterData::prototype(ExecutionEngine *v4)
QQmlXMLHttpRequestData *d = xhrdata(v4->v8Engine);
if (d->characterDataPrototype.isUndefined()) {
Scope scope(v4);
- Scoped<Object> p(scope, v4->newObject());
+ ScopedObject p(scope, v4->newObject());
ScopedObject pp(scope);
p->setPrototype((pp = NodePrototype::getProto(v4)));
p->defineAccessorProperty(QStringLiteral("data"), NodePrototype::method_get_nodeValue, 0);
@@ -762,7 +762,7 @@ ReturnedValue Text::prototype(ExecutionEngine *v4)
QQmlXMLHttpRequestData *d = xhrdata(v4->v8Engine);
if (d->textPrototype.isUndefined()) {
Scope scope(v4);
- Scoped<Object> p(scope, v4->newObject());
+ ScopedObject p(scope, v4->newObject());
ScopedObject pp(scope);
p->setPrototype((pp = CharacterData::prototype(v4)));
p->defineAccessorProperty(QStringLiteral("isElementContentWhitespace"), method_isElementContentWhitespace, 0);
@@ -779,7 +779,7 @@ ReturnedValue CDATA::prototype(ExecutionEngine *v4)
QQmlXMLHttpRequestData *d = xhrdata(v4->v8Engine);
if (d->cdataPrototype.isUndefined()) {
Scope scope(v4);
- Scoped<Object> p(scope, v4->newObject());
+ ScopedObject p(scope, v4->newObject());
ScopedObject pp(scope);
p->setPrototype((pp = Text::prototype(v4)));
d->cdataPrototype = p;
@@ -793,7 +793,7 @@ ReturnedValue Document::prototype(ExecutionEngine *v4)
QQmlXMLHttpRequestData *d = xhrdata(v4->v8Engine);
if (d->documentPrototype.isUndefined()) {
Scope scope(v4);
- Scoped<Object> p(scope, v4->newObject());
+ ScopedObject p(scope, v4->newObject());
ScopedObject pp(scope);
p->setPrototype((pp = NodePrototype::getProto(v4)));
p->defineAccessorProperty(QStringLiteral("xmlVersion"), method_xmlVersion, 0);
@@ -1556,14 +1556,14 @@ const QByteArray &QQmlXMLHttpRequest::rawResponseBody() const
void QQmlXMLHttpRequest::dispatchCallbackImpl(const ValueRef me)
{
QV4::Scope scope(v4);
- Scoped<Object> o(scope, me);
+ ScopedObject o(scope, me);
if (!o) {
v4->throwError(QStringLiteral("QQmlXMLHttpRequest: internal error: empty ThisObject"));
return;
}
ScopedString s(scope, v4->newString(QStringLiteral("ThisObject")));
- Scoped<Object> thisObj(scope, o->get(s));
+ ScopedObject thisObj(scope, o->get(s));
if (!thisObj) {
v4->throwError(QStringLiteral("QQmlXMLHttpRequest: internal error: empty ThisObject"));
return;
@@ -1577,7 +1577,7 @@ void QQmlXMLHttpRequest::dispatchCallbackImpl(const ValueRef me)
}
s = v4->newString(QStringLiteral("ActivationObject"));
- Scoped<Object> activationObject(scope, o->get(s));
+ ScopedObject activationObject(scope, o->get(s));
if (!activationObject) {
v4->throwError(QStringLiteral("QQmlXMLHttpRequest: internal error: empty ActivationObject"));
return;
@@ -1666,7 +1666,7 @@ struct QQmlXMLHttpRequestCtor : public FunctionObject
QV8Engine *engine = that->engine()->v8Engine;
QQmlXMLHttpRequest *r = new QQmlXMLHttpRequest(engine, engine->networkAccessManager());
Scoped<QQmlXMLHttpRequestWrapper> w(scope, that->engine()->memoryManager->alloc<QQmlXMLHttpRequestWrapper>(that->engine(), r));
- Scoped<Object> proto(scope, ctor->d()->proto);
+ ScopedObject proto(scope, ctor->d()->proto);
w->setPrototype(proto);
return w.asReturnedValue();
}
@@ -1719,7 +1719,7 @@ void QQmlXMLHttpRequestCtor::setupProto()
{
ExecutionEngine *v4 = engine();
Scope scope(v4);
- Scoped<Object> p(scope, v4->newObject());
+ ScopedObject p(scope, v4->newObject());
d()->proto = p->d();
// Methods