diff options
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4object_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index de44d5cfd3..7a2b3bb38e 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -208,7 +208,7 @@ public: void arrayCreate() { if (!arrayData) - arrayData = new ArrayData; + arrayData = new SimpleArrayData; #ifdef CHECK_SPARSE_ARRAYS initSparseArray(); #endif @@ -346,7 +346,6 @@ inline void Object::push_back(const ValueRef v) uint idx = getLength(); arrayReserve(idx + 1); arrayData->put(idx, v); - arrayData->setLength(idx + 1); setArrayLengthUnchecked(idx + 1); } |