diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-04 15:06:46 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-07 11:16:17 +0000 |
commit | 540f5b272933b0c8e377b811c85ed2478bb98997 (patch) | |
tree | fe3cd19e27f5791013f30a92960aa07f550e5c98 /src/qml/qml/qqmlpropertycache_p.h | |
parent | 0282b89ec672e25a465a8e51bc74c7fd58a624b1 (diff) |
Split QStringHash and QLinked(Multi)StringHash apart
The plain QStringHash can have a mutable iterator. The linked one can
not. We never use a non-linked MultiStringHash.
Change-Id: I69b66f7952e6e47b79c0995f389e6219744dfc76
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertycache_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h index 7a74579699..7369714f70 100644 --- a/src/qml/qml/qqmlpropertycache_p.h +++ b/src/qml/qml/qqmlpropertycache_p.h @@ -57,7 +57,7 @@ #include "qqmlnotifier_p.h" #include <private/qqmlpropertyindex_p.h> -#include <private/qstringhash_p.h> +#include <private/qlinkedstringhash_p.h> #include <QtCore/qvarlengtharray.h> #include <QtCore/qvector.h> @@ -191,7 +191,7 @@ private: QQmlPropertyCacheMethodArguments *createArgumentsObject(int count, const QList<QByteArray> &names); typedef QVector<QQmlPropertyData> IndexCache; - typedef QStringMultiHash<QPair<int, QQmlPropertyData *> > StringCache; + typedef QLinkedStringMultiHash<QPair<int, QQmlPropertyData *> > StringCache; typedef QVector<int> AllowedRevisionCache; QQmlPropertyData *findProperty(StringCache::ConstIterator it, QObject *, QQmlContextData *) const; |