Commit b537b892 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent b0f4dbf4
Pipeline #150303 passed with stage
in 3 minutes and 36 seconds
......@@ -61,9 +61,9 @@ static Term getTerm(const Akonadi::SearchTerm &term, const QString &property)
Term recursiveEmailTermMapping(const Akonadi::SearchTerm &term)
if (!term.subTerms().isEmpty()) {
const auto subTermsResult = term.subTerms();
if (!subTermsResult.isEmpty()) {
Term t(mapRelation(term.relation()));
const auto subTermsResult = term.subTerms();
for (const Akonadi::SearchTerm &subterm : subTermsResult) {
const Term newTerm = recursiveEmailTermMapping(subterm);
if (newTerm.isValid()) {
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