Refactor code

Make the code slightly easier to read.
This commit is contained in:
Chocobo1
2018-07-29 16:02:57 +08:00
committed by sledgehammer999
parent 1aabcfc30c
commit 70291014d1
2 changed files with 5 additions and 12 deletions

View File

@@ -1991,7 +1991,7 @@ void TorrentHandle::prioritizeFiles(const QVector<int> &priorities)
if (priorities.size() != filesCount()) return;
// Save first/last piece first option state
bool firstLastPieceFirst = hasFirstLastPiecePriority();
const bool firstLastPieceFirst = hasFirstLastPiecePriority();
// Reset 'm_hasSeedStatus' if needed in order to react again to
// 'torrent_finished_alert' and eg show tray notifications