fix warning

This commit is contained in:
Martin Rotter 2021-07-28 14:29:59 +02:00
parent 400c2995a4
commit dfc28bcd4e
2 changed files with 2 additions and 3 deletions

View File

@ -998,13 +998,12 @@ QStringList DatabaseQueries::bagOfMessages(const QSqlDatabase& db, ServiceRoot::
QHash<QString, QStringList> DatabaseQueries::bagsOfMessages(const QSqlDatabase& db, const QList<Label*>& labels) {
QHash<QString, QStringList> 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());

View File

@ -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<QString, QStringList> k(msg_cache.m_cachedLabelAssignments);
// Assign label for these messages.