summaryrefslogtreecommitdiffstats
path: root/common/datastorequery.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-07 16:36:30 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-07 22:00:25 +0100
commit8b430d214325110460cf69360d36ba567025c18b (patch)
tree11b4dcbed67c2e37f481861bf5fbb2b7cca9900e /common/datastorequery.cpp
parent95854555f038708ddb3fe2e7244deaa57e9a4b8c (diff)
downloadsink-8b430d214325110460cf69360d36ba567025c18b.tar.gz
sink-8b430d214325110460cf69360d36ba567025c18b.zip
Fixed warning
Diffstat (limited to 'common/datastorequery.cpp')
-rw-r--r--common/datastorequery.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp
index f5152b7..870daf8 100644
--- a/common/datastorequery.cpp
+++ b/common/datastorequery.cpp
@@ -302,7 +302,7 @@ public:
302 auto selectionResult = reduceOnValue(reductionValue, aggregateValues); 302 auto selectionResult = reduceOnValue(reductionValue, aggregateValues);
303 303
304 mSelectedValues.insert(reductionValueBa, selectionResult); 304 mSelectedValues.insert(reductionValueBa, selectionResult);
305 readEntity(selectionResult, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) { 305 readEntity(selectionResult, [&](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation operation) {
306 callback({entity, operation, aggregateValues}); 306 callback({entity, operation, aggregateValues});
307 foundValue = true; 307 foundValue = true;
308 }); 308 });
@@ -320,18 +320,18 @@ public:
320 auto oldSelectionResult = mSelectedValues.take(reductionValueBa); 320 auto oldSelectionResult = mSelectedValues.take(reductionValueBa);
321 if (oldSelectionResult == selectionResult) { 321 if (oldSelectionResult == selectionResult) {
322 mSelectedValues.insert(reductionValueBa, selectionResult); 322 mSelectedValues.insert(reductionValueBa, selectionResult);
323 readEntity(selectionResult, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) { 323 readEntity(selectionResult, [&](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) {
324 callback({entity, Sink::Operation_Modification, aggregateValues}); 324 callback({entity, Sink::Operation_Modification, aggregateValues});
325 }); 325 });
326 } else { 326 } else {
327 //remove old result 327 //remove old result
328 readEntity(oldSelectionResult, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) { 328 readEntity(oldSelectionResult, [&](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) {
329 callback({entity, Sink::Operation_Removal}); 329 callback({entity, Sink::Operation_Removal});
330 }); 330 });
331 331
332 //add new result 332 //add new result
333 mSelectedValues.insert(reductionValueBa, selectionResult); 333 mSelectedValues.insert(reductionValueBa, selectionResult);
334 readEntity(selectionResult, [&, this](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) { 334 readEntity(selectionResult, [&](const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Operation) {
335 callback({entity, Sink::Operation_Creation, aggregateValues}); 335 callback({entity, Sink::Operation_Creation, aggregateValues});
336 }); 336 });
337 } 337 }