From 57f08e59fcc289742fe88ee45b82b52b26dbf945 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 7 May 2014 16:14:08 +0200 Subject: Get rid of all uses of ObjectRef Change-Id: I705e2362dcda542f56826dadec6b0a6f15848788 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4objectiterator_p.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/qml/jsruntime/qv4objectiterator_p.h') diff --git a/src/qml/jsruntime/qv4objectiterator_p.h b/src/qml/jsruntime/qv4objectiterator_p.h index 8ee2ae4e4f..6a8431913d 100644 --- a/src/qml/jsruntime/qv4objectiterator_p.h +++ b/src/qml/jsruntime/qv4objectiterator_p.h @@ -67,15 +67,15 @@ struct Q_QML_EXPORT ObjectIterator WithProtoChain = 0x2, }; - ObjectRef object; - ObjectRef current; + Value *object; + Value *current; SparseArrayNode *arrayNode; uint arrayIndex; uint memberIndex; uint flags; - ObjectIterator(Value *scratch1, Value *scratch2, const ObjectRef o, uint flags); - ObjectIterator(Scope &scope, const ObjectRef o, uint flags); + ObjectIterator(Value *scratch1, Value *scratch2, Object *o, uint flags); + ObjectIterator(Scope &scope, Object *o, uint flags); void next(String *&name, uint *index, Property *pd, PropertyAttributes *attributes = 0); ReturnedValue nextPropertyName(ValueRef value); ReturnedValue nextPropertyNameAsString(ValueRef value); @@ -84,13 +84,13 @@ struct Q_QML_EXPORT ObjectIterator struct ForEachIteratorObject: Object { struct Data : Object::Data { - Data(const ObjectRef o, uint flags) + Data(Object *o, uint flags) : it(workArea, workArea + 1, o, flags) {} ObjectIterator it; Value workArea[2]; }; struct _Data { - _Data(const ObjectRef o, uint flags) + _Data(Object *o, uint flags) : it(workArea, workArea + 1, o, flags) {} ObjectIterator it; Value workArea[2]; @@ -98,7 +98,7 @@ struct ForEachIteratorObject: Object { V4_OBJECT Q_MANAGED_TYPE(ForeachIteratorObject) - ForEachIteratorObject(ExecutionContext *ctx, const ObjectRef o) + ForEachIteratorObject(ExecutionContext *ctx, Object *o) : Object(ctx->d()->engine) , __data(o, ObjectIterator::EnumerableOnly|ObjectIterator::WithProtoChain) { setVTable(staticVTable()); -- cgit v1.2.3