mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07: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:
parent
4b263f057d
commit
3955eef50d
18 changed files with 124 additions and 127 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue