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>
This commit is contained in:
Alexander Volkov 2017-11-30 15:08:48 +03:00
parent de250dd22c
commit fbda8acc92

View File

@ -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()