qt5base-lts/tests/auto/concurrent
Ivan Solovev 3d780c0d70 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>
2020-12-04 15:36:50 +01:00
..
qtconcurrentfilter Automatically generate unit tests for QtConcurrent 2020-11-09 16:01:33 +01:00
qtconcurrentfiltermapgenerated QtConcurrent: filter/map reduction without default ctor 2020-12-04 15:36:50 +01:00
qtconcurrentiteratekernel CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentmap Fix compiler warnings from mixing signed/unsigned ints 2020-12-01 09:12:10 +01:00
qtconcurrentmedian CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentrun Forbid implicit conversions between QFuture and other types 2020-10-30 17:19:26 +01:00
qtconcurrenttask QtConcurrent: Handle running with promise inside QTaskBuilder 2020-10-28 15:38:52 +01:00
qtconcurrentthreadengine Store std::exception_ptr in QUnhandledException 2020-10-26 14:27:02 +01:00
CMakeLists.txt Automatically generate unit tests for QtConcurrent 2020-11-09 16:01:33 +01:00
concurrent.pro Automatically generate unit tests for QtConcurrent 2020-11-09 16:01:33 +01:00
testhelper_functions.h Automatically generate unit tests for QtConcurrent 2020-11-09 16:01:33 +01:00