Browse Source

Allow ADL lookup for helper function

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
50167d40d7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/infohash.cpp
  2. 4
      src/base/bittorrent/infohash.h

2
src/base/bittorrent/infohash.cpp

@ -91,7 +91,7 @@ bool InfoHash::operator!=(const InfoHash &other) const @@ -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<QString>(key), seed);
}

4
src/base/bittorrent/infohash.h

@ -54,8 +54,8 @@ namespace BitTorrent @@ -54,8 +54,8 @@ namespace BitTorrent
libtorrent::sha1_hash m_nativeHash;
QString m_hashString;
};
}
uint qHash(const BitTorrent::InfoHash &key, uint seed);
uint qHash(const InfoHash &key, uint seed);
}
#endif // BITTORRENT_INFOHASH_H

Loading…
Cancel
Save