mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -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
|
@ -42,7 +42,7 @@ TrackerEntry::TrackerEntry(const QString &url)
|
|||
{
|
||||
}
|
||||
|
||||
TrackerEntry::TrackerEntry(const libtorrent::announce_entry &nativeEntry)
|
||||
TrackerEntry::TrackerEntry(const lt::announce_entry &nativeEntry)
|
||||
: m_nativeEntry(nativeEntry)
|
||||
{
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ int TrackerEntry::tier() const
|
|||
|
||||
TrackerEntry::Status TrackerEntry::status() const
|
||||
{
|
||||
// libtorrent::announce_entry::is_working() returns
|
||||
// lt::announce_entry::is_working() returns
|
||||
// true when the tracker hasn't been tried yet.
|
||||
if (m_nativeEntry.verified && isWorking())
|
||||
return Working;
|
||||
|
@ -119,7 +119,7 @@ int TrackerEntry::numDownloaded() const
|
|||
#endif
|
||||
}
|
||||
|
||||
libtorrent::announce_entry TrackerEntry::nativeEntry() const
|
||||
lt::announce_entry TrackerEntry::nativeEntry() const
|
||||
{
|
||||
return m_nativeEntry;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue