mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Fix compilation on Windows (Remove using namespace libtorrent; from headers)
This commit is contained in:
parent
61208fce13
commit
8a5dc1f239
33 changed files with 118 additions and 109 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue