1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 09:55:55 +00:00

Initialize struct member

This commit is contained in:
Chocobo1 2017-05-09 13:51:12 +08:00
parent b9e8cab1e5
commit 3739bcc270

View File

@ -74,6 +74,7 @@ AddTorrentData::AddTorrentData()
: resumed(false) : resumed(false)
, disableTempPath(false) , disableTempPath(false)
, sequential(false) , sequential(false)
, firstLastPiecePriority(false)
, hasSeedStatus(false) , hasSeedStatus(false)
, skipChecking(false) , skipChecking(false)
, hasRootFolder(true) , hasRootFolder(true)
@ -1655,7 +1656,7 @@ void TorrentHandle::handleMetadataReceivedAlert(libt::metadata_received_alert *p
m_speedMonitor.reset(); m_speedMonitor.reset();
m_session->handleTorrentPaused(this); m_session->handleTorrentPaused(this);
} }
// If first/last piece priority was specified when adding this torrent, we can set it // If first/last piece priority was specified when adding this torrent, we can set it
// now that we have metadata: // now that we have metadata:
if (m_needsToSetFirstLastPiecePriority) { if (m_needsToSetFirstLastPiecePriority) {