From fbda8acc922217745bb3e7754d1cd450a0e0165a Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Thu, 30 Nov 2017 15:08:48 +0300 Subject: 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 --- src/corelib/thread/qfuturewatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/thread/qfuturewatcher.h') 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 class QFutureWatcher : public QFutureWatcherBase { public: - explicit QFutureWatcher(QObject *_parent = 0) + explicit QFutureWatcher(QObject *_parent = nullptr) : QFutureWatcherBase(_parent) { } ~QFutureWatcher() -- cgit v1.2.3