diff --git a/src/base/bittorrent/infohash.cpp b/src/base/bittorrent/infohash.cpp index 0e37c7509..0080bf9b5 100644 --- a/src/base/bittorrent/infohash.cpp +++ b/src/base/bittorrent/infohash.cpp @@ -91,7 +91,7 @@ bool InfoHash::operator!=(const InfoHash &other) const return (m_nativeHash != other.m_nativeHash); } -uint qHash(const InfoHash &key, uint seed) +uint BitTorrent::qHash(const InfoHash &key, uint seed) { return qHash(static_cast(key), seed); } diff --git a/src/base/bittorrent/infohash.h b/src/base/bittorrent/infohash.h index 9b1291672..ce8eaebcf 100644 --- a/src/base/bittorrent/infohash.h +++ b/src/base/bittorrent/infohash.h @@ -54,8 +54,8 @@ namespace BitTorrent libtorrent::sha1_hash m_nativeHash; QString m_hashString; }; + + uint qHash(const InfoHash &key, uint seed); } -uint qHash(const BitTorrent::InfoHash &key, uint seed); - #endif // BITTORRENT_INFOHASH_H