aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject_p.h
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-07-15 23:13:48 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-08-18 20:25:24 +0000
commit496b69a6c73c354c0a440a3fc4779eb8325abc4a (patch)
treede8ceaddd33c4fad5d7ece7d6ec9665771e0c271 /src/qml/qml/qqmlvmemetaobject_p.h
parent7e61bc92a3dccbd4c04d0a69da950cfdc32e487b (diff)
Store all properties in one Javascript array
Store both "normal" properties and var properties in the same js array. The second array which is removed by this patch was scaffolding for the initial brinup. Change-Id: I24f72a1d880a54f68f5562e5077dbc26e7db864a Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject_p.h')
-rw-r--r--src/qml/qml/qqmlvmemetaobject_p.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h
index a87feec043..c4ca128e87 100644
--- a/src/qml/qml/qqmlvmemetaobject_p.h
+++ b/src/qml/qml/qqmlvmemetaobject_p.h
@@ -198,18 +198,10 @@ public:
QQmlVMEVariant *data;
QQmlVMEMetaObjectEndpoint *aliasEndpoints;
- QV4::WeakValue varProperties;
- int firstVarPropertyIndex;
- bool varPropertiesInitialized;
- inline void allocateVarPropertiesArray();
- inline bool ensureVarPropertiesAllocated();
-
- // temporary solution so I can experiment with storing
- // properties in a JS array. Should be switched over to also
- // use the 'varProperties' in the end.
QV4::WeakValue properties;
+ int firstVarPropertyIndex;
bool propertiesInitialized;
- inline void allocatePropertiesArray();
+ inline void allocateProperties();
inline bool ensurePropertiesAllocated();
int readPropertyAsInt(int id);