mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
committed by
GitHub
parent
f27f2c20e0
commit
10ee1ab7a2
@@ -524,8 +524,7 @@ void Feed::handleArticleLoadFinished(QVector<QVariantHash> articles)
|
||||
for (const QVariantHash &articleData : articles)
|
||||
{
|
||||
const auto articleID = articleData.value(Article::KeyId).toString();
|
||||
// TODO: use [[unlikely]] in C++20
|
||||
if (Q_UNLIKELY(m_articles.contains(articleID)))
|
||||
if (m_articles.contains(articleID)) [[unlikely]]
|
||||
continue;
|
||||
|
||||
auto *article = new Article(this, articleData);
|
||||
|
||||
Reference in New Issue
Block a user