diff options
Diffstat (limited to 'common/datastorequery.cpp')
-rw-r--r-- | common/datastorequery.cpp | 8 |
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 | } |