mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Update function signature for Qt6 qHash()
Since the `qhash()` signature has changed in Qt6.
This commit is contained in:
@@ -332,7 +332,11 @@ QDataStream &operator>>(QDataStream &in, Path &path)
|
||||
return in;
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
std::size_t qHash(const Path &key, const std::size_t seed)
|
||||
#else
|
||||
uint qHash(const Path &key, const uint seed)
|
||||
#endif
|
||||
{
|
||||
return ::qHash(key.data(), seed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user