From 1740f968df5b717ea4e22e47b6499219606b7b45 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 27 Jan 2020 03:51:58 +0800 Subject: [PATCH] Revise qHash function Instead of xor and narrowing the integers ourselves, now we let qHash() from Qt do the job properly. --- src/base/bittorrent/torrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 683e1fd64..442821fdf 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -82,7 +82,7 @@ namespace libtorrent template uint qHash(const strong_typedef &key, const uint seed) { - return static_cast((std::hash> {})(key) ^ seed); + return ::qHash((std::hash> {})(key), seed); } } }