aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-05-20 15:22:31 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-05-23 08:59:34 +0000
commit7f7e2b0c9cc8e6d4f4eb18be8e5cc4053a0d4b11 (patch)
tree6b246d2ec9d0259a6e3fddfc4ec0db40a65d9d83 /tests/auto/qml/qqmllanguage
parentb0377f4581a7f62cccd375a1f9400ca57225e4ac (diff)
Simplify VME meta object meta-data
For each type of VME meta object we store an array of integers holding the meta-type ids of the QML declared properties. We can replace that array with access to the QV4::CompiledData::Property entry for each property, where the type is also accessible. This is a fairly straight-forward change, except for the bit in QV4::CompilationUnit where we delay the release of the CompiledData::Unit and friends until the destructor instead of releasing it at unlink time. That should be a safe change and is necessary as there are a few tests around where the VME meta object still needs access to this meta-data at a very late stage in the life-cycle right before the deferred deletion is run. Change-Id: I431de15d12766df837c0e0251192df16a5a76868 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 974b2b0b9d..98a97ebd66 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -4135,7 +4135,6 @@ void tst_qqmllanguage::dataAlignment()
{
QVERIFY(sizeof(QQmlVMEMetaData) % sizeof(int) == 0);
QVERIFY(sizeof(QQmlVMEMetaData::AliasData) % sizeof(int) == 0);
- QVERIFY(sizeof(QQmlVMEMetaData::PropertyData) % sizeof(int) == 0);
}
void tst_qqmllanguage::deleteSingletons()