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

@ -48,7 +48,7 @@ namespace BitTorrent
};
TrackerEntry(const QString &url);
TrackerEntry(const libtorrent::announce_entry &nativeEntry);
TrackerEntry(const lt::announce_entry &nativeEntry);
TrackerEntry(const TrackerEntry &other) = default;
TrackerEntry &operator=(const TrackerEntry &other) = default;
@ -63,10 +63,10 @@ namespace BitTorrent
int numLeeches() const;
int numDownloaded() const;
libtorrent::announce_entry nativeEntry() const;
lt::announce_entry nativeEntry() const;
private:
libtorrent::announce_entry m_nativeEntry;
lt::announce_entry m_nativeEntry;
};
bool operator==(const TrackerEntry &left, const TrackerEntry &right);