Fixes a crash in the qquickmultipointtoucharea test
Change-Id: Ic1ca5220e5e7a569e3cc499ba120296fb885d6c0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
// directly against QList<QObject*>?
const QList<QObject *> &list = *(QList<QObject *>*)ptr;
QV4::ArrayObject *a = m_v4Engine->newArrayObject();
- a->setArrayLength(list.count());
+ a->arrayReserve(list.count());
for (int ii = 0; ii < list.count(); ++ii)
a->arrayData[ii].value = QV4::QObjectWrapper::wrap(m_v4Engine, list.at(ii));
+ a->arrayDataLen = list.count();
+ a->setArrayLengthUnchecked(list.count());
return QV4::Value::fromObject(a);
}