aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-12-13 13:31:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-03 17:09:23 +0100
commitc83b9cdd584c459ecaaae5c04c314aad50585754 (patch)
tree38aa23a74ff55795504fd8ed910e6dc724a357f7 /src/imports
parent8e8600d1c4dba9d974927f117f13498dd593cd74 (diff)
Move array data into it's own struct
First step of separating the array data from Object. Change-Id: I5c857397f0ef53cff0807debdb1e405424e1046a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/dialogs-private/qquickfontlistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/dialogs-private/qquickfontlistmodel.cpp b/src/imports/dialogs-private/qquickfontlistmodel.cpp
index 96d1824ef6..e3601f2030 100644
--- a/src/imports/dialogs-private/qquickfontlistmodel.cpp
+++ b/src/imports/dialogs-private/qquickfontlistmodel.cpp
@@ -239,9 +239,9 @@ QQmlV4Handle QQuickFontListModel::pointSizes()
Scoped<QV4::ArrayObject> a(scope, v4engine->newArrayObject());
a->arrayReserve(size);
- a->arrayDataLen = size;
+ a->arrayData.length = size;
for (int i = 0; i < size; ++i)
- a->arrayData[i].value = Primitive::fromInt32(pss.at(i));
+ a->arrayData.data[i].value = Primitive::fromInt32(pss.at(i));
a->setArrayLengthUnchecked(size);
return QQmlV4Handle(ScopedValue(scope, a.asReturnedValue()));