aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4arraydata.cpp
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2015-01-13 21:49:09 +0100
committerLars Knoll <[email protected]>2015-01-21 13:19:02 +0100
commit630f118f043edb88501e387d779c62c86b1030d4 (patch)
tree2c8c3cdcadae94b859760a0603e22748da33453a /src/qml/jsruntime/qv4arraydata.cpp
parent47fbcb47771a36ab9fd0a4d5ede7b7504ab1410d (diff)
Move the internalClass pointer into Heap::Object
The other classes that derive from Heap::Base don't need it at all. So get rid of it there and save a pointer. Change-Id: I9c5df2e43cd6eeac2e6e41f3d3b8077d3afbc8f2 Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4arraydata.cpp')
-rw-r--r--src/qml/jsruntime/qv4arraydata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4arraydata.cpp b/src/qml/jsruntime/qv4arraydata.cpp
index f0fbc85a9a..8f1fe1bbe6 100644
--- a/src/qml/jsruntime/qv4arraydata.cpp
+++ b/src/qml/jsruntime/qv4arraydata.cpp
@@ -129,13 +129,13 @@ void ArrayData::realloc(Object *o, Type newType, uint requested, bool enforceAtt
Scoped<ArrayData> newData(scope);
if (newType < Heap::ArrayData::Sparse) {
Heap::SimpleArrayData *n = scope.engine->memoryManager->allocManaged<SimpleArrayData>(size);
- new (n) Heap::SimpleArrayData(scope.engine);
+ new (n) Heap::SimpleArrayData;
n->offset = 0;
n->len = d ? d->d()->len : 0;
newData = n;
} else {
Heap::SparseArrayData *n = scope.engine->memoryManager->allocManaged<SparseArrayData>(size);
- new (n) Heap::SparseArrayData(scope.engine);
+ new (n) Heap::SparseArrayData;
newData = n;
}
newData->setAlloc(alloc);