summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurlquery.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-03-18 08:55:40 -0700
committerThiago Macieira <thiago.macieira@intel.com>2025-05-09 16:54:13 -0700
commitb10c7b1680d57174f2b4d5a08387378550434ae9 (patch)
treec00cfdb23c93378fc18b1ed81b54dbf191c3e4a2 /src/corelib/io/qurlquery.cpp
parent4647940e880539dfdd57b0de79b1d1098c0c1526 (diff)
qtbase: use qHashMulti & qHashRange instead of QHashCombine
If we have no specific need for the private QHashCombine class, use the front-end functions. For headers, we do have a need: we prefer QHashCombine because it compiles faster. Change-Id: I73578ea802d3b905a53bfffd504c20af0ca96cf8 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qurlquery.cpp')
-rw-r--r--src/corelib/io/qurlquery.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/corelib/io/qurlquery.cpp b/src/corelib/io/qurlquery.cpp
index 70303273045..e4b6da4cae1 100644
--- a/src/corelib/io/qurlquery.cpp
+++ b/src/corelib/io/qurlquery.cpp
@@ -428,11 +428,8 @@ bool comparesEqual(const QUrlQuery &lhs, const QUrlQuery &rhs)
size_t qHash(const QUrlQuery &key, size_t seed) noexcept
{
if (const QUrlQueryPrivate *d = key.d) {
- QtPrivate::QHashCombine hash;
// keep in sync with operator==:
- seed = hash(seed, d->valueDelimiter);
- seed = hash(seed, d->pairDelimiter);
- seed = hash(seed, d->itemList);
+ return qHashMulti(seed, d->valueDelimiter, d->pairDelimiter, d->itemList);
}
return seed;
}