diff options
author | Lars Knoll <[email protected]> | 2014-05-07 15:36:38 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2014-07-22 13:49:12 +0200 |
commit | 2c7c791e3f0d801a8c1051b7da7b53cb4e50a017 (patch) | |
tree | 2d53d2d588fc1a19c5c409b52b06f46ed8d17a47 /src/qml/jsruntime/qv4jsonobject.cpp | |
parent | 33593f00e84e6fb05191e9bb88000566c0c96426 (diff) |
Remove the less often used Ref classes
Change-Id: I9ee531c903317a0f324671d98af1f967b684915c
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index f0f71523b7..752d647072 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -656,7 +656,7 @@ struct Stringify Stringify(ExecutionContext *ctx) : ctx(ctx), replacerFunction(0) {} QString Str(const QString &key, ValueRef v); - QString JA(ArrayObjectRef a); + QString JA(ArrayObject *a); QString JO(ObjectRef o); QString makeMember(const QString &key, ValueRef v); @@ -837,9 +837,9 @@ QString Stringify::JO(ObjectRef o) return result; } -QString Stringify::JA(ArrayObjectRef a) +QString Stringify::JA(ArrayObject *a) { - if (stack.contains(a.getPointer())) { + if (stack.contains(a)) { ctx->throwTypeError(); return QString(); } @@ -847,7 +847,7 @@ QString Stringify::JA(ArrayObjectRef a) Scope scope(a->engine()); QString result; - stack.push(a.getPointer()); + stack.push(a); QString stepback = indent; indent += gap; @@ -1061,7 +1061,7 @@ QV4::ReturnedValue JsonObject::fromJsonArray(ExecutionEngine *engine, const QJso return a.asReturnedValue(); } -QJsonArray JsonObject::toJsonArray(ArrayObjectRef a, V4ObjectSet &visitedObjects) +QJsonArray JsonObject::toJsonArray(ArrayObject *a, V4ObjectSet &visitedObjects) { QJsonArray result; if (!a) |