mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
parent
f27f2c20e0
commit
10ee1ab7a2
15 changed files with 24 additions and 48 deletions
|
@ -212,7 +212,7 @@ void TorrentContentModel::updateFilesProgress()
|
|||
const QVector<qreal> &filesProgress = m_contentHandler->filesProgress();
|
||||
Q_ASSERT(m_filesIndex.size() == filesProgress.size());
|
||||
// XXX: Why is this necessary?
|
||||
if (Q_UNLIKELY(m_filesIndex.size() != filesProgress.size()))
|
||||
if (m_filesIndex.size() != filesProgress.size()) [[unlikely]]
|
||||
return;
|
||||
|
||||
for (int i = 0; i < filesProgress.size(); ++i)
|
||||
|
@ -248,7 +248,7 @@ void TorrentContentModel::updateFilesAvailability()
|
|||
|
||||
Q_ASSERT(m_filesIndex.size() == availableFileFractions.size());
|
||||
// XXX: Why is this necessary?
|
||||
if (Q_UNLIKELY(m_filesIndex.size() != availableFileFractions.size()))
|
||||
if (m_filesIndex.size() != availableFileFractions.size()) [[unlikely]]
|
||||
return;
|
||||
|
||||
for (int i = 0; i < m_filesIndex.size(); ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue