diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-03-03 13:59:37 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-03 16:14:27 +0000 |
commit | 7d16c732127199bf2f26ef93d242b0d19b0d7944 (patch) | |
tree | 8a881b6c893a529f74500d29310c3af475853b25 /src/datavisualization/theme/q3dtheme.h | |
parent | a3cd1d4b7d35f4c12d2a26283fcd346126a535e7 (diff) |
Add explicit and 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.
Added explicit where it was missing. This is not a source-
incompatible change, because code that breaks by this is
a bug. Let's not have this sitting around in an LTS.
Change-Id: I579e8714f94884dc555b673c9f85508f17cdc99d
Task-number: QTBUG-45291
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'src/datavisualization/theme/q3dtheme.h')
-rw-r--r-- | src/datavisualization/theme/q3dtheme.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datavisualization/theme/q3dtheme.h b/src/datavisualization/theme/q3dtheme.h index 63ed0c47..236320bf 100644 --- a/src/datavisualization/theme/q3dtheme.h +++ b/src/datavisualization/theme/q3dtheme.h @@ -80,8 +80,8 @@ public: }; public: - explicit Q3DTheme(QObject *parent = 0); - explicit Q3DTheme(Theme themeType, QObject *parent = 0); + explicit Q3DTheme(QObject *parent = Q_NULLPTR); + explicit Q3DTheme(Theme themeType, QObject *parent = Q_NULLPTR); virtual ~Q3DTheme(); void setType(Theme themeType); @@ -175,7 +175,7 @@ Q_SIGNALS: void colorStyleChanged(Q3DTheme::ColorStyle style); protected: - explicit Q3DTheme(Q3DThemePrivate *d, Theme themeType, QObject *parent = 0); + explicit Q3DTheme(Q3DThemePrivate *d, Theme themeType, QObject *parent = Q_NULLPTR); QScopedPointer<Q3DThemePrivate> d_ptr; |