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

@@ -76,7 +76,7 @@ MagnetUri::MagnetUri(const QString &source)
m_name = QString::fromStdString(m_addTorrentParams.name);
for (const std::string &tracker : m_addTorrentParams.trackers)
m_trackers.append(libtorrent::announce_entry {tracker});
m_trackers.append(lt::announce_entry {tracker});
for (const std::string &urlSeed : m_addTorrentParams.url_seeds)
m_urlSeeds.append(QUrl(QString::fromStdString(urlSeed)));
@@ -112,7 +112,7 @@ QString MagnetUri::url() const
return m_url;
}
libtorrent::add_torrent_params MagnetUri::addTorrentParams() const
lt::add_torrent_params MagnetUri::addTorrentParams() const
{
return m_addTorrentParams;
}