mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Merge pull request #14861 from Chocobo1/warnings
Initialize struct members by default
This commit is contained in:
commit
c9a552c89c
1 changed files with 3 additions and 3 deletions
|
@ -53,10 +53,10 @@ namespace BitTorrent
|
||||||
int numSeeds = -1;
|
int numSeeds = -1;
|
||||||
int numLeeches = -1;
|
int numLeeches = -1;
|
||||||
int numDownloaded = -1;
|
int numDownloaded = -1;
|
||||||
QString message;
|
QString message {};
|
||||||
};
|
};
|
||||||
|
|
||||||
QString url;
|
QString url {};
|
||||||
int tier = 0;
|
int tier = 0;
|
||||||
|
|
||||||
QVector<EndpointStats> endpoints {};
|
QVector<EndpointStats> endpoints {};
|
||||||
|
@ -67,7 +67,7 @@ namespace BitTorrent
|
||||||
int numSeeds = -1;
|
int numSeeds = -1;
|
||||||
int numLeeches = -1;
|
int numLeeches = -1;
|
||||||
int numDownloaded = -1;
|
int numDownloaded = -1;
|
||||||
QString message;
|
QString message {};
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator==(const TrackerEntry &left, const TrackerEntry &right);
|
bool operator==(const TrackerEntry &left, const TrackerEntry &right);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue