From 50167d40d7ccfb42756b75fef155eaa3e9cf2ff6 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 9 Mar 2018 00:58:38 +0800 Subject: [PATCH] Allow ADL lookup for helper function --- src/base/bittorrent/infohash.cpp | 2 +- src/base/bittorrent/infohash.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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