diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/queryrunner.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index a1aca91..0199f8b 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp | |||
@@ -271,9 +271,12 @@ void QueryWorker<DomainType>::resultProviderCallback(const Sink::Query &query, S | |||
271 | for (auto it = result.aggregateValues.constBegin(); it != result.aggregateValues.constEnd(); it++) { | 271 | for (auto it = result.aggregateValues.constBegin(); it != result.aggregateValues.constEnd(); it++) { |
272 | valueCopy->setProperty(it.key(), it.value()); | 272 | valueCopy->setProperty(it.key(), it.value()); |
273 | } | 273 | } |
274 | QVector<QByteArray> aggregateIdsBA; | ||
275 | aggregateIdsBA.reserve(result.aggregateIds.size()); | ||
274 | for (const auto &id : result.aggregateIds) { | 276 | for (const auto &id : result.aggregateIds) { |
275 | valueCopy->aggregatedIds() << id.toDisplayByteArray(); | 277 | aggregateIdsBA << id.toDisplayByteArray(); |
276 | } | 278 | } |
279 | valueCopy->aggregatedIds() = aggregateIdsBA; | ||
277 | if (mResultTransformation) { | 280 | if (mResultTransformation) { |
278 | mResultTransformation(*valueCopy); | 281 | mResultTransformation(*valueCopy); |
279 | } | 282 | } |