mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 18:26:11 +03:00
Initialize struct members by default
This is to suppress the following compilation warnings: base/bittorrent/magneturi.cpp: In constructor ‘BitTorrent::MagnetUri::MagnetUri(const QString&)’: base/bittorrent/magneturi.cpp:87:60: warning: missing initializer for member ‘BitTorrent::TrackerEntry::message’ [-Wmissing-field-initializers] 87 | m_trackers.append({QString::fromStdString(tracker)});
This commit is contained in:
parent
ab6141edb7
commit
bdf2f6c3e1
1 changed files with 3 additions and 3 deletions
|
@ -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
|
|||
int numSeeds = -1;
|
||||
int numLeeches = -1;
|
||||
int numDownloaded = -1;
|
||||
QString message;
|
||||
QString message {};
|
||||
};
|
||||
|
||||
bool operator==(const TrackerEntry &left, const TrackerEntry &right);
|
||||
|
|
Loading…
Reference in a new issue