From 2ad719c3962344981e8523782e6f5027628908db Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 16 Dec 2020 15:00:11 +0100 Subject: [PATCH] save --- .../services/inoreader/network/inoreadernetworkfactory.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/librssguard/services/inoreader/network/inoreadernetworkfactory.cpp b/src/librssguard/services/inoreader/network/inoreadernetworkfactory.cpp index 0492b1261..171fc8883 100644 --- a/src/librssguard/services/inoreader/network/inoreadernetworkfactory.cpp +++ b/src/librssguard/services/inoreader/network/inoreadernetworkfactory.cpp @@ -224,11 +224,9 @@ void InoreaderNetworkFactory::editLabels(const QString& state, bool assign, cons trimmed_ids.append(QString("i=") + simplified_id); } - QStringList working_subset; + QStringList working_subset; working_subset.reserve(std::min(200, trimmed_ids.size())); int timeout = qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::UpdateTimeout)).toInt(); - working_subset.reserve(trimmed_ids.size() > 200 ? 200 : trimmed_ids.size()); - // Now, we perform messages update in batches (max 200 messages per batch). while (!trimmed_ids.isEmpty()) { // We take 200 IDs.