summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentiteratekernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/concurrent/qtconcurrentiteratekernel.h')
-rw-r--r--src/concurrent/qtconcurrentiteratekernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/concurrent/qtconcurrentiteratekernel.h b/src/concurrent/qtconcurrentiteratekernel.h
index 09009efedcc..efe679ccf24 100644
--- a/src/concurrent/qtconcurrentiteratekernel.h
+++ b/src/concurrent/qtconcurrentiteratekernel.h
@@ -158,8 +158,8 @@ class IterateKernel : public ThreadEngine<T>
public:
typedef T ResultType;
- IterateKernel(Iterator _begin, Iterator _end)
- : begin(_begin), end(_end), current(_begin), currentIndex(0),
+ IterateKernel(QThreadPool *pool, Iterator _begin, Iterator _end)
+ : ThreadEngine<T>(pool), begin(_begin), end(_end), current(_begin), currentIndex(0),
forIteration(selectIteration(typename std::iterator_traits<Iterator>::iterator_category())), progressReportingEnabled(true)
{
iterationCount = forIteration ? std::distance(_begin, _end) : 0;