mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Change to lt namespace
Quoting from libtorrent doc: > In the future, libtorrent will be the alias and lt the namespace name.
This commit is contained in:
@@ -38,7 +38,7 @@ InfoHash::InfoHash()
|
||||
{
|
||||
}
|
||||
|
||||
InfoHash::InfoHash(const libtorrent::sha1_hash &nativeHash)
|
||||
InfoHash::InfoHash(const lt::sha1_hash &nativeHash)
|
||||
: m_valid(true)
|
||||
, m_nativeHash(nativeHash)
|
||||
{
|
||||
@@ -66,7 +66,7 @@ bool InfoHash::isValid() const
|
||||
return m_valid;
|
||||
}
|
||||
|
||||
InfoHash::operator libtorrent::sha1_hash() const
|
||||
InfoHash::operator lt::sha1_hash() const
|
||||
{
|
||||
return m_nativeHash;
|
||||
}
|
||||
@@ -78,8 +78,8 @@ InfoHash::operator QString() const
|
||||
|
||||
bool BitTorrent::operator==(const InfoHash &left, const InfoHash &right)
|
||||
{
|
||||
return (static_cast<libtorrent::sha1_hash>(left)
|
||||
== static_cast<libtorrent::sha1_hash>(right));
|
||||
return (static_cast<lt::sha1_hash>(left)
|
||||
== static_cast<lt::sha1_hash>(right));
|
||||
}
|
||||
|
||||
bool BitTorrent::operator!=(const InfoHash &left, const InfoHash &right)
|
||||
|
||||
Reference in New Issue
Block a user