diff options
author | hjk <hjk@qt.io> | 2018-07-16 15:21:28 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-07-24 09:23:55 +0000 |
commit | 37e91af0830b4f651a669a8203b40191998e3c86 (patch) | |
tree | b0136005d7071df4742fd94032c5afbf9c38b738 /src/corelib | |
parent | f8c15fe63c3b291e145a39836ebf14187e2f9061 (diff) |
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>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qhash.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index 5f0b131342..8d2616865e 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -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 |