mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Update function signature for Qt6 qHash()
Since the `qhash()` signature has changed in Qt6.
This commit is contained in:
@@ -140,7 +140,11 @@ namespace BitTorrent
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
std::size_t qHash(const Peer &key, const std::size_t seed)
|
||||
#else
|
||||
uint qHash(const Peer &key, const uint seed)
|
||||
#endif
|
||||
{
|
||||
return qHash(key.uniqueID(), seed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user