summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-11-30 15:08:48 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-12-01 10:15:40 +0000
commitfbda8acc922217745bb3e7754d1cd450a0e0165a (patch)
tree0fa05a22a9805d2aaeca004d1bb1d56cfb6740fb /src/corelib
parentde250dd22c698ae1eec4927c87314024c3523c70 (diff)
QFutureWatcher: Use nullptr as a default value in constructor
... to make user code buildable with gcc [-Werror=zero-as-null-pointer-constant]. Change-Id: I309953acd7154511660302aa9826410276cfe41b Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qfuturewatcher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qfuturewatcher.h b/src/corelib/thread/qfuturewatcher.h
index 3357e27037..8a6716a8f7 100644
--- a/src/corelib/thread/qfuturewatcher.h
+++ b/src/corelib/thread/qfuturewatcher.h
@@ -115,7 +115,7 @@ template <typename T>
class QFutureWatcher : public QFutureWatcherBase
{
public:
- explicit QFutureWatcher(QObject *_parent = 0)
+ explicit QFutureWatcher(QObject *_parent = nullptr)
: QFutureWatcherBase(_parent)
{ }
~QFutureWatcher()