Browse Source

Merge pull request #14861 from Chocobo1/warnings

Initialize struct members by default
adaptive-webui-19844
Chocobo1 4 years ago committed by GitHub
parent
commit
c9a552c89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/base/bittorrent/trackerentry.h

6
src/base/bittorrent/trackerentry.h

@ -53,10 +53,10 @@ namespace BitTorrent @@ -53,10 +53,10 @@ namespace BitTorrent
int numSeeds = -1;
int numLeeches = -1;
int numDownloaded = -1;
QString message;
QString message {};
};
QString url;
QString url {};
int tier = 0;
QVector<EndpointStats> endpoints {};
@ -67,7 +67,7 @@ namespace BitTorrent @@ -67,7 +67,7 @@ namespace BitTorrent
int numSeeds = -1;
int numLeeches = -1;
int numDownloaded = -1;
QString message;
QString message {};
};
bool operator==(const TrackerEntry &left, const TrackerEntry &right);

Loading…
Cancel
Save