summaryrefslogtreecommitdiffstats
path: root/common/datastorequery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/datastorequery.cpp')
-rw-r--r--common/datastorequery.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp
index 82a396e..d90d546 100644
--- a/common/datastorequery.cpp
+++ b/common/datastorequery.cpp
@@ -239,7 +239,7 @@ public:
239 } 239 }
240 240
241 QVariantList list; 241 QVariantList list;
242 for (const auto r : results) { 242 for (const auto &r : results) {
243 readEntity(r, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) { 243 readEntity(r, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) {
244 for (auto &aggregator : mAggregators) { 244 for (auto &aggregator : mAggregators) {
245 if (!aggregator.property.isEmpty()) { 245 if (!aggregator.property.isEmpty()) {
@@ -293,7 +293,7 @@ public:
293 while(!foundValue && mSource->next([this, callback, &foundValue](const ResultSet::Result &result) { 293 while(!foundValue && mSource->next([this, callback, &foundValue](const ResultSet::Result &result) {
294 auto bloomValue = result.entity.getProperty(mBloomProperty); 294 auto bloomValue = result.entity.getProperty(mBloomProperty);
295 auto results = indexLookup(mBloomProperty, bloomValue); 295 auto results = indexLookup(mBloomProperty, bloomValue);
296 for (const auto r : results) { 296 for (const auto &r : results) {
297 readEntity(r, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) { 297 readEntity(r, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) {
298 callback({entity, Sink::Operation_Creation}); 298 callback({entity, Sink::Operation_Creation});
299 foundValue = true; 299 foundValue = true;
@@ -312,6 +312,11 @@ DataStoreQuery::DataStoreQuery(const Sink::QueryBase &query, const QByteArray &t
312 setupQuery(); 312 setupQuery();
313} 313}
314 314
315DataStoreQuery::~DataStoreQuery()
316{
317
318}
319
315void DataStoreQuery::readEntity(const QByteArray &key, const BufferCallback &resultCallback) 320void DataStoreQuery::readEntity(const QByteArray &key, const BufferCallback &resultCallback)
316{ 321{
317 mStore.readLatest(mType, key, resultCallback); 322 mStore.readLatest(mType, key, resultCallback);