summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-03-16 10:46:16 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-03-21 10:16:28 +0100
commit37e0953613ef9a3db137bc8d3076441d9ae317d9 (patch)
treeeced1e11ee3757c7fbfe00808a5af66e1e437d24 /src/corelib/tools/qhash.cpp
parent58437836f078e4a59184be2fdcda26fa546182bb (diff)
QHash: add a Qt 7 TODO
The hashing seed's type has been changed from int to size_t in Qt 6. However the functions setting/getting the seed, and the seed itself, are still simply int, meaning that we've crippled our seeding. Add a TODO to amend it. Change-Id: Ie9dd177149ec299ccf16d4e31f9f4b065804cfed Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qhash.cpp')
-rw-r--r--src/corelib/tools/qhash.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp
index 933dff84ab..092985887f 100644
--- a/src/corelib/tools/qhash.cpp
+++ b/src/corelib/tools/qhash.cpp
@@ -740,6 +740,7 @@ static uint qt_create_qhash_seed()
/*
The QHash seed itself.
*/
+// ### Qt 7: this should use size_t, not int.
static QBasicAtomicInt qt_qhash_seed = Q_BASIC_ATOMIC_INITIALIZER(-1);
/*!