From b335114219d225022e9d0808a4a7f3fbe74c7f3c Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 18 Nov 2022 12:39:54 +0300 Subject: [PATCH] Use better method to set bit --- src/base/bittorrent/torrentimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index 27ea8193d..505ddf756 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -2055,7 +2055,7 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p) const int fileIndex = m_indexMap.value(p->index, -1); Q_ASSERT(fileIndex >= 0); - m_completedFiles[fileIndex] = true; + m_completedFiles.setBit(fileIndex); if (m_session->isAppendExtensionEnabled()) {