Initialize class variable in initializer list

This commit is contained in:
Chocobo1
2022-01-24 13:44:49 +08:00
parent ff99e5ac9a
commit 53992bf0d5
2 changed files with 5 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ namespace BitTorrent
int downloadingPieceIndex() const;
private:
void calcRelevance(const Torrent *torrent);
qreal calcRelevance(const Torrent *torrent) const;
void determineFlags();
lt::peer_info m_nativeInfo = {};