QHash: Remove reference to Qt3's QDict implementation

While it is still formally correct, it does not add much
value anymore.

Change-Id: I32431e3e73f3ca662dc4beb754f53449692c56a9
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
hjk 2018-07-16 15:21:28 +02:00
parent f8c15fe63c
commit 37e91af083

View File

@ -1100,9 +1100,8 @@ uint qHash(long double key, uint seed) Q_DECL_NOTHROW
To avoid this problem, replace \c hash[i] with \c hash.value(i)
in the code above.
Internally, QHash uses a hash table to perform lookups. Unlike Qt
3's \c QDict class, which needed to be initialized with a prime
number, QHash's hash table automatically grows and shrinks to
Internally, QHash uses a hash table to perform lookups. This
hash table automatically grows and shrinks to
provide fast lookups without wasting too much memory. You can
still control the size of the hash table by calling reserve() if
you already know approximately how many items the QHash will