- Fixed compilation with libtorrent v0.14

This commit is contained in:
Christophe Dumez
2009-11-22 11:16:30 +00:00
parent 5544f2a138
commit 8fe448d35f
4 changed files with 44 additions and 10 deletions

View File

@@ -55,6 +55,9 @@ public:
QString name_or_url;
QString last_message;
unsigned long num_peers;
#ifndef LIBTORRENT_0_15
bool simply_warning;
#endif
//TrackerInfos() {}
TrackerInfos(const TrackerInfos &b) {
@@ -62,8 +65,14 @@ public:
Q_ASSERT(!name_or_url.isEmpty());
last_message = b.last_message;
num_peers = b.num_peers;
#ifndef LIBTORRENT_0_15
simply_warning = b.simply_warning;
#endif
}
TrackerInfos(QString name_or_url): name_or_url(name_or_url), last_message(""), num_peers(0) {
#ifndef LIBTORRENT_0_15
simply_warning = false;
#endif
}
};