diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-29 16:30:13 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-31 12:56:50 +0200 |
commit | 5747f3139219abd6c8670953620cee1f5584caba (patch) | |
tree | 07dda7644e3628ead8459efa304e36d705e36521 /src/concurrent | |
parent | 4ed483b0e24b410b6bb240b48b4ad71e67877dc2 (diff) |
Another round of 0->nullptr cleanup
Change-Id: Ic8db7dc252f8fea46eb5a4f334726d6c7f4645a6
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/concurrent')
-rw-r--r-- | src/concurrent/qtconcurrentthreadengine.cpp | 6 |
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) |