diff options
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index ed2bf09bb7..399cd2e0bd 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -544,10 +544,10 @@ void Object::setLookup(Managed *m, Lookup *l, const ValueRef value) l->setter = Lookup::setterInsert2; } -Property *Object::advanceIterator(Managed *m, ObjectIterator *it, String **name, uint *index, PropertyAttributes *attrs) +Property *Object::advanceIterator(Managed *m, ObjectIterator *it, StringRef name, uint *index, PropertyAttributes *attrs) { Object *o = static_cast<Object *>(m); - *name = 0; + name = (String *)0; *index = UINT_MAX; if (!it->arrayIndex) @@ -595,7 +595,7 @@ Property *Object::advanceIterator(Managed *m, ObjectIterator *it, String **name, PropertyAttributes a = o->internalClass->propertyData[it->memberIndex]; ++it->memberIndex; if (!(it->flags & ObjectIterator::EnumerableOnly) || a.isEnumerable()) { - *name = n; + name = n; if (attrs) *attrs = a; return p; @@ -1435,14 +1435,3 @@ QStringList ArrayObject::toQStringList() const } return result; } - - -DEFINE_MANAGED_VTABLE(ForEachIteratorObject); - -void ForEachIteratorObject::markObjects(Managed *that) -{ - ForEachIteratorObject *o = static_cast<ForEachIteratorObject *>(that); - Object::markObjects(that); - if (o->it.object) - o->it.object->mark(); -} |