diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2020-12-01 19:22:16 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2020-12-04 15:36:50 +0100 |
commit | 3d780c0d7068a6a6876d058314b1970810008c1f (patch) | |
tree | 86f3abfbdb95e0f414ebb1d7757108631652ca39 /coin | |
parent | 0c19e3f703a7c3fd59e6db8a9d4ac7091674b552 (diff) |
QtConcurrent: filter/map reduction without default ctor
Previously a default constructor was required for the result type
of mappedReduced() and filteredReduced(), even if a default value
was provided.
This patch fixes the problem.
The issue was in the ResultReporter type, that was calling
QList::resize() to adjust the size of expected reported results.
A default-value parameter was added to the class, so that
a corresponding overload of QList::resize could be invoked.
Task-number: QTBUG-88452
Change-Id: I51113753e314d76aa74d201b5a7e327a6ca75f47
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'coin')
0 files changed, 0 insertions, 0 deletions