summaryrefslogtreecommitdiffstats
path: root/common/entitystorage.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-08 16:51:06 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 10:40:01 +0200
commitc08ac164d20c56e4b2890ebc9f2acda2c5723b5c (patch)
tree88a7f41d6ccd266db049d9b7c3d16c8a41905d7a /common/entitystorage.cpp
parent615fc9df81555ce5a2b16747640beba43e109ef4 (diff)
downloadsink-c08ac164d20c56e4b2890ebc9f2acda2c5723b5c.tar.gz
sink-c08ac164d20c56e4b2890ebc9f2acda2c5723b5c.zip
Cleanup
Diffstat (limited to 'common/entitystorage.cpp')
-rw-r--r--common/entitystorage.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/entitystorage.cpp b/common/entitystorage.cpp
index c60135e..33b65d6 100644
--- a/common/entitystorage.cpp
+++ b/common/entitystorage.cpp
@@ -90,8 +90,6 @@ ResultSet EntityStorageBase::filteredSet(const ResultSet &resultSet, const std::
90 //Read through the source values and return whatever matches the filter 90 //Read through the source values and return whatever matches the filter
91 std::function<bool(std::function<void(const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &, Akonadi2::Operation)>)> generator = [this, resultSetPtr, &transaction, filter, initialQuery](std::function<void(const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &, Akonadi2::Operation)> callback) -> bool { 91 std::function<bool(std::function<void(const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &, Akonadi2::Operation)>)> generator = [this, resultSetPtr, &transaction, filter, initialQuery](std::function<void(const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &, Akonadi2::Operation)> callback) -> bool {
92 while (resultSetPtr->next()) { 92 while (resultSetPtr->next()) {
93 //TODO. every read value is actually a revision that contains one of three operations. Reflect that so the result set can be updated appropriately.
94 //TODO while getting the initial set everything is adding
95 readEntity(transaction, resultSetPtr->id(), [this, filter, callback, initialQuery](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &domainObject, Akonadi2::Operation operation) { 93 readEntity(transaction, resultSetPtr->id(), [this, filter, callback, initialQuery](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &domainObject, Akonadi2::Operation operation) {
96 if (filter(domainObject)) { 94 if (filter(domainObject)) {
97 if (initialQuery) { 95 if (initialQuery) {