From da9112e6385eac93bfb467d169e1d001d83e1ce9 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 3 Mar 2016 10:20:37 +0100 Subject: Make public headers compile with -Wzero-as-null-pointer-constant ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Task-number: QTBUG-45291 Change-Id: Iaa6ea07220566adc323010c52233416e6ae2b726 Reviewed-by: Lorn Potter --- src/sensors/qcompass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sensors/qcompass.h') diff --git a/src/sensors/qcompass.h b/src/sensors/qcompass.h index acb76536..1069b6ce 100644 --- a/src/sensors/qcompass.h +++ b/src/sensors/qcompass.h @@ -66,7 +66,7 @@ class Q_SENSORS_EXPORT QCompass : public QSensor { Q_OBJECT public: - explicit QCompass(QObject *parent = 0); + explicit QCompass(QObject *parent = Q_NULLPTR); virtual ~QCompass(); QCompassReading *reading() const; static char const * const type; -- cgit v1.2.3