summaryrefslogtreecommitdiffstats
path: root/src/concurrent
diff options
context:
space:
mode:
Diffstat (limited to 'src/concurrent')
-rw-r--r--src/concurrent/qtconcurrentthreadengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/concurrent/qtconcurrentthreadengine.cpp b/src/concurrent/qtconcurrentthreadengine.cpp
index 2c6e052621..081018fbcc 100644
--- a/src/concurrent/qtconcurrentthreadengine.cpp
+++ b/src/concurrent/qtconcurrentthreadengine.cpp
@@ -161,7 +161,7 @@ bool ThreadEngineBarrier::releaseUnlessLast()
}
ThreadEngineBase::ThreadEngineBase(QThreadPool *pool)
- : futureInterface(0), threadPool(pool)
+ : futureInterface(nullptr), threadPool(pool)
{
setAutoDelete(false);
}
@@ -242,7 +242,7 @@ void ThreadEngineBase::waitForResume()
bool ThreadEngineBase::isProgressReportingEnabled()
{
// If we don't have a QFuture, there is no-one to report the progress to.
- return (futureInterface != 0);
+ return (futureInterface != nullptr);
}
void ThreadEngineBase::setProgressValue(int progress)
@@ -278,7 +278,7 @@ void ThreadEngineBase::startThreads()
void ThreadEngineBase::threadExit()
{
- const bool asynchronous = futureInterface != 0;
+ const bool asynchronous = (futureInterface != nullptr);
const int lastThread = (barrier.release() == 0);
if (lastThread && asynchronous)