aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4qobjectwrapper_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2016-09-07 13:06:40 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2016-09-22 10:09:54 +0000
commitbbcf887f43d2b9d84bb65d963a3c8b5e3108bafc (patch)
treea4e1fddba57dcdc6235076a52dd3cbdfc4e750b3 /src/qml/jsruntime/qv4qobjectwrapper_p.h
parent58e6b10a58e3d9b9bc5393819163af5afa734320 (diff)
QML: Replace a QVector with a plain old C-style array
One of the steps needed to make QV4::Heap::structs trivial. It also makes QMetaObjectWrapper memcpy-able. Change-Id: I1a1b2e5a3fdb87ac4d2b5ace5af3aac54a63d9ed Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper_p.h')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper_p.h b/src/qml/jsruntime/qv4qobjectwrapper_p.h
index 8ab5c96c3a..f0dbd82a63 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper_p.h
+++ b/src/qml/jsruntime/qv4qobjectwrapper_p.h
@@ -94,10 +94,12 @@ struct QObjectMethod : FunctionObject {
};
struct QMetaObjectWrapper : FunctionObject {
- QMetaObjectWrapper(const QMetaObject* metaObject);
const QMetaObject* metaObject;
- QVector<QQmlPropertyData> constructors;
+ QQmlPropertyData *constructors;
+ int constructorCount;
+ QMetaObjectWrapper(const QMetaObject* metaObject);
+ ~QMetaObjectWrapper();
void ensureConstructorsCache();
};