aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-05-20 16:21:52 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-05-23 09:02:24 +0000
commit1337e0d0827e86591e67a6dbaaeb3bd3f9ed733b (patch)
tree2c98347d5a951ad0fb04457f03173928692b3811 /src/qml/qml/qqmlvmemetaobject_p.h
parent16067fd85c720ad531f88e08a68eddd6222770f7 (diff)
Shrink QQmlVMEMetaData
The count of properties, aliases, signals and methods is also accessible through CompiledData::Object. Change-Id: I4693ea672b643cdaabf752c3f0d71abdcc032395 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject_p.h')
-rw-r--r--src/qml/qml/qqmlvmemetaobject_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h
index 2b1956ecfd..77b4e4de98 100644
--- a/src/qml/qml/qqmlvmemetaobject_p.h
+++ b/src/qml/qml/qqmlvmemetaobject_p.h
@@ -78,11 +78,8 @@ QT_BEGIN_NAMESPACE
struct QQmlVMEMetaData
{
- short propertyCount;
- short aliasCount;
- short signalCount;
- short methodCount;
// Make sure this structure is always aligned to int
+ int dummy;
struct AliasData {
int contextIdx;
@@ -256,6 +253,7 @@ public:
QQmlVMEVariantQObjectPtr *getQObjectGuardForProperty(int) const;
+
// keep a reference to the compilation unit in order to still
// do property access when the context has been invalidated.
QQmlRefPointer<QV4::CompiledData::CompilationUnit> compilationUnit;