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
18 changed files with 124 additions and 127 deletions

View File

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