Commit 9f12cbb1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use for(...:...)

parent 38cf8be6
......@@ -332,7 +332,7 @@ QSet<qint64> SearchPlugin::search(const QString &akonadiQuery, const QVector<qin
if (!collections.isEmpty()) {
Term parentTerm(Term::And);
Term collectionTerm(Term::Or);
Q_FOREACH (const qint64 col, collections) {
for (const qint64 col : collections) {
collectionTerm.addSubTerm(Term(QStringLiteral("collection"), QString::number(col), Term::Equal));
}
parentTerm.addSubTerm(collectionTerm);
......
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