diff --git a/src/akonadi/akonaditaskqueries.cpp b/src/akonadi/akonaditaskqueries.cpp --- a/src/akonadi/akonaditaskqueries.cpp +++ b/src/akonadi/akonaditaskqueries.cpp @@ -73,8 +73,8 @@ Akonadi::Item item = m_serializer->createItemFromTask(task); auto &query = m_findChildren[item.id()]; auto fetch = m_helpers->fetchSiblings(item); - auto predicate = [this, task] (const Akonadi::Item &item) { - return m_serializer->isTaskChild(task, item); + auto predicate = [this, task] (const Akonadi::Item &childItem) { + return m_serializer->isTaskChild(task, childItem); }; m_integrator->bind("TaskQueries::findChildren", query, fetch, predicate); return query->result(); diff --git a/src/domain/livequery.h b/src/domain/livequery.h --- a/src/domain/livequery.h +++ b/src/domain/livequery.h @@ -81,26 +81,9 @@ typedef std::function UpdateFunction; typedef std::function RepresentsFunction; - LiveQuery() - { - } - - LiveQuery(const LiveQuery &other) - : m_fetch(other.m_fetch), - m_predicate(other.m_predicate), - m_convert(other.m_convert), - m_update(other.m_update), - m_represents(other.m_represents), - m_provider(other.m_provider) - { - } - - LiveQuery &operator=(const LiveQuery &other) - { - LiveQuery tmp(other); - std::swap(*this, other); - return *this; - } + LiveQuery() = default; + LiveQuery(const LiveQuery &other) = default; + LiveQuery &operator=(const LiveQuery &other) = default; ~LiveQuery() {