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:
Chocobo1 2019-05-09 12:45:52 +08:00
parent 4b263f057d
commit 3955eef50d
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
18 changed files with 124 additions and 127 deletions

View file

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