1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 11:24:15 +00:00

Allow ADL lookup for helper function

This commit is contained in:
Chocobo1 2018-03-09 00:58:38 +08:00
parent 5261d4375f
commit 50167d40d7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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