Commit 2fce8f7a authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 8237c1fb
Pipeline #36057 passed with stage
in 35 minutes and 20 seconds
......@@ -264,8 +264,8 @@ ResultIterator EmailQuery::exec()
if (!d->collections.isEmpty()) {
Xapian::Query query;
for (Akonadi::Collection::Id id : qAsConst(d->collections)) {
QString c = QString::number(id);
Xapian::Query q = Xapian::Query('C' + c.toStdString());
const QString c = QString::number(id);
const Xapian::Query q = Xapian::Query('C' + c.toStdString());
query = Xapian::Query(Xapian::Query::OP_OR, query, q);
}
......
......@@ -142,7 +142,7 @@ void IndexedItemsPrivate::findIndexedInDatabase(QSet<Akonadi::Item::Id> &indexed
return;
}
const std::string term = QStringLiteral("C%1").arg(collectionId).toStdString();
Xapian::Query query(term);
const Xapian::Query query(term);
Xapian::Enquire enquire(db);
enquire.set_query(query);
......
......@@ -37,7 +37,7 @@ Query *Query::fromJSON(const QByteArray &json)
return nullptr;
}
QVariantMap result = doc.toVariant().toMap();
const QVariantMap result = doc.toVariant().toMap();
const QString type = result[QStringLiteral("type")].toString().toLower();
if (type != QLatin1String("contact")) {
qCWarning(AKONADI_SEARCH_PIM_LOG) << "Can only handle contact queries";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment