summaryrefslogtreecommitdiffstats
path: root/src/concurrent
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-10-09 00:02:00 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2020-11-09 16:01:33 +0100
commit223e409efbf29f7c06bec7a403403c9689f42b3e (patch)
tree005c43d0ac9d33a74af85e5e3e9c0277b19dadd9 /src/concurrent
parent3553f8119b5cd8c04c7208c519bb08245a44720e (diff)
Automatically generate unit tests for QtConcurrent
There are many different ways to to call map and filter functions in QtConcurrent. This patch adds a python script to generate all possible combinations. Change-Id: I61ed1758601e219c5852e8cc939c5feebb23d2f6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/concurrent')
-rw-r--r--src/concurrent/qtconcurrentfilterkernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/concurrent/qtconcurrentfilterkernel.h b/src/concurrent/qtconcurrentfilterkernel.h
index 5033d7b05e..ede775e9bd 100644
--- a/src/concurrent/qtconcurrentfilterkernel.h
+++ b/src/concurrent/qtconcurrentfilterkernel.h
@@ -133,7 +133,7 @@ public:
void finish() override
{
reducer.finish(reduce, reducedResult);
- sequence = reducedResult;
+ sequence = std::move(reducedResult);
}
inline bool shouldThrottleThread() override