mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Revise qHash function
Instead of xor and narrowing the integers ourselves, now we let qHash() from Qt do the job properly.
This commit is contained in:
parent
43fe5214d2
commit
21922ed3b4
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ namespace libtorrent
|
|||
template <typename T, typename Tag>
|
||||
uint qHash(const strong_typedef<T, Tag> &key, const uint seed)
|
||||
{
|
||||
return static_cast<uint>((std::hash<strong_typedef<T, Tag>> {})(key) ^ seed);
|
||||
return ::qHash((std::hash<strong_typedef<T, Tag>> {})(key), seed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue