diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-28 17:40:32 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-02 07:22:26 +0000 |
commit | 54ee6994e66936c1d532f7718c858c9b18e3c91d (patch) | |
tree | cd4620b0d41dfe3f20164e570ed64faa8fa663ac /src/qml/qml/qqmltypeloader_p.h | |
parent | fa53d4e35433cc59e99b24f16f18c713683c1a80 (diff) |
Add a checksum to the generated QML compilation units
Change-Id: Icd5b1d805059981cbbb4c0eb2a5c842d59223839
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloader_p.h')
-rw-r--r-- | src/qml/qml/qqmltypeloader_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h index ab6b046fcf..5f754df1fc 100644 --- a/src/qml/qml/qqmltypeloader_p.h +++ b/src/qml/qml/qqmltypeloader_p.h @@ -463,7 +463,9 @@ private: QList<TypeReference> m_compositeSingletons; // map from name index to resolved type - QHash<int, TypeReference> m_resolvedTypes; + // While this could be a hash, a map is chosen here to provide a stable + // order, which is used to calculating a check-sum on dependent meta-objects. + QMap<int, TypeReference> m_resolvedTypes; bool m_typesResolved:1; QQmlRefPointer<QV4::CompiledData::CompilationUnit> m_compiledData; |