From fddf09363e1bbc6f6549eaf28def7699b2d87341 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 26 Jun 2018 16:54:50 +0200 Subject: [PATCH] QFutureInterface::reportFinished use nullptr instead of 0 So that users don't get a warning if using -Wzero-as-null-pointer-constant Change-Id: Ia15b5f380a2f6a93e05eec06646608e480cdf5d2 Reviewed-by: Thiago Macieira --- src/corelib/thread/qfutureinterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/thread/qfutureinterface.h b/src/corelib/thread/qfutureinterface.h index 3dd236752c..d5e2401eee 100644 --- a/src/corelib/thread/qfutureinterface.h +++ b/src/corelib/thread/qfutureinterface.h @@ -178,7 +178,7 @@ public: inline void reportResult(const T *result, int index = -1); inline void reportResult(const T &result, int index = -1); inline void reportResults(const QVector &results, int beginIndex = -1, int count = -1); - inline void reportFinished(const T *result = 0); + inline void reportFinished(const T *result = nullptr); inline const T &resultReference(int index) const; inline const T *resultPointer(int index) const;