diff options
author | Minijackson <minijackson@riseup.net> | 2018-07-23 14:26:10 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-07-23 14:26:10 +0200 |
commit | 5e047f6dd559f57c245f5fb01bc10a019aafacdd (patch) | |
tree | 23c85194dbf4757885b793ffd21ca80d693a83dd /common | |
parent | 10b356ff0e015f41c346a72286382ccfc2302d8d (diff) | |
download | sink-5e047f6dd559f57c245f5fb01bc10a019aafacdd.tar.gz sink-5e047f6dd559f57c245f5fb01bc10a019aafacdd.zip |
Make assignation clear
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 | } |