mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 07:02:31 -06:00
Minor code clean up
This commit is contained in:
@@ -40,13 +40,19 @@ public:
|
||||
unsigned long num_peers;
|
||||
|
||||
//TrackerInfos() {}
|
||||
TrackerInfos(const TrackerInfos &b) {
|
||||
name_or_url = b.name_or_url;
|
||||
TrackerInfos(const TrackerInfos &b)
|
||||
: name_or_url(b.name_or_url)
|
||||
, last_message(b.last_message)
|
||||
, num_peers(b.num_peers)
|
||||
{
|
||||
Q_ASSERT(!name_or_url.isEmpty());
|
||||
last_message = b.last_message;
|
||||
num_peers = b.num_peers;
|
||||
}
|
||||
TrackerInfos(QString name_or_url): name_or_url(name_or_url), last_message(""), num_peers(0) {
|
||||
|
||||
TrackerInfos(QString name_or_url)
|
||||
: name_or_url(name_or_url)
|
||||
, last_message("")
|
||||
, num_peers(0)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user