diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 3118b2760..0112577a2 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -125,7 +125,7 @@ namespace std { uint qHash(const std::string &key, uint seed = 0) { - return qHash(QByteArray::fromRawData(key.data(), static_cast(key.length())), seed); + return ::qHash(std::hash {}(key), seed); } } diff --git a/src/base/digest32.h b/src/base/digest32.h index ffbee3043..c4e8f26c5 100644 --- a/src/base/digest32.h +++ b/src/base/digest32.h @@ -167,6 +167,6 @@ std::size_t qHash(const Digest32 &key, const std::size_t seed = 0) template uint qHash(const Digest32 &key, const uint seed = 0) { - return static_cast((std::hash::UnderlyingType> {})(key)) ^ seed; + return ::qHash(std::hash::UnderlyingType> {}(key), seed); } #endif