mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
Fix compilation on Windows (Remove using namespace libtorrent; from headers)
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
#include <libtorrent/entry.hpp>
|
||||
#include <QString>
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
struct QPeer {
|
||||
|
||||
bool operator!=(const QPeer &other) const {
|
||||
@@ -20,13 +18,13 @@ struct QPeer {
|
||||
return ip+":"+QString::number(port);
|
||||
}
|
||||
|
||||
entry toEntry(bool no_peer_id) const {
|
||||
entry::dictionary_type peer_map;
|
||||
libtorrent::entry toEntry(bool no_peer_id) const {
|
||||
libtorrent::entry::dictionary_type peer_map;
|
||||
if(!no_peer_id)
|
||||
peer_map["id"] = entry(peer_id.toStdString());
|
||||
peer_map["ip"] = entry(ip.toStdString());
|
||||
peer_map["port"] = entry(port);
|
||||
return entry(peer_map);
|
||||
peer_map["id"] = libtorrent::entry(peer_id.toStdString());
|
||||
peer_map["ip"] = libtorrent::entry(ip.toStdString());
|
||||
peer_map["port"] = libtorrent::entry(port);
|
||||
return libtorrent::entry(peer_map);
|
||||
}
|
||||
|
||||
QString ip;
|
||||
|
||||
Reference in New Issue
Block a user