summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentreducekernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/concurrent/qtconcurrentreducekernel.h')
-rw-r--r--src/concurrent/qtconcurrentreducekernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/concurrent/qtconcurrentreducekernel.h b/src/concurrent/qtconcurrentreducekernel.h
index 4c023ebb4af..9a9027c9d04 100644
--- a/src/concurrent/qtconcurrentreducekernel.h
+++ b/src/concurrent/qtconcurrentreducekernel.h
@@ -140,9 +140,9 @@ class ReduceKernel
}
public:
- ReduceKernel(ReduceOptions _reduceOptions)
+ ReduceKernel(QThreadPool *pool, ReduceOptions _reduceOptions)
: reduceOptions(_reduceOptions), progress(0), resultsMapSize(0),
- threadCount(QThreadPool::globalInstance()->maxThreadCount())
+ threadCount(pool->maxThreadCount())
{ }
void runReduce(ReduceFunctor &reduce,