From dfc28bcd4e4a2a83b6bcae1394daf8f58a933a7b Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 28 Jul 2021 14:29:59 +0200 Subject: [PATCH] fix warning --- src/librssguard/database/databasequeries.cpp | 3 +-- src/librssguard/services/greader/greaderserviceroot.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librssguard/database/databasequeries.cpp b/src/librssguard/database/databasequeries.cpp index d16605096..b3016e4fa 100755 --- a/src/librssguard/database/databasequeries.cpp +++ b/src/librssguard/database/databasequeries.cpp @@ -998,13 +998,12 @@ QStringList DatabaseQueries::bagOfMessages(const QSqlDatabase& db, ServiceRoot:: QHash DatabaseQueries::bagsOfMessages(const QSqlDatabase& db, const QList& labels) { QHash ids; QSqlQuery q(db); - QString query; q.setForwardOnly(true); q.prepare(QSL("SELECT message " "FROM LabelsInMessages " - "WHERE label = :label AND account_id = :account_id;").arg(query)); + "WHERE label = :label AND account_id = :account_id;")); for (const Label* lbl :labels) { q.bindValue(QSL(":label"), lbl->customId()); diff --git a/src/librssguard/services/greader/greaderserviceroot.cpp b/src/librssguard/services/greader/greaderserviceroot.cpp index 9bd25455f..0e904400a 100755 --- a/src/librssguard/services/greader/greaderserviceroot.cpp +++ b/src/librssguard/services/greader/greaderserviceroot.cpp @@ -150,7 +150,7 @@ void GreaderServiceRoot::saveAllCachedData(bool ignore_errors) { } if (m_network->service() != Service::TheOldReader) { - // The Old Reader does not support labels. + // NOTE: The Old Reader does not support labels. QMapIterator k(msg_cache.m_cachedLabelAssignments); // Assign label for these messages.