From 8d77bcc5627bceff54b8c0498ff6d083ef3a018e Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 19 Jul 2018 17:14:44 +0200 Subject: [PATCH] Replace 0 with nullptr So if people are using the -Wzero-as-null-pointer-constant don't get a warning when using these private QPA includes Change-Id: I6deb089b17a844680db24998d60c94de7a1227b1 Reviewed-by: David Faure Reviewed-by: Jesus Fernandez --- src/gui/kernel/qinputdevicemanager_p.h | 2 +- src/gui/kernel/qplatforminputcontextplugin_p.h | 2 +- src/gui/kernel/qplatformintegrationplugin.h | 2 +- src/gui/kernel/qplatformsharedgraphicscache.h | 2 +- src/gui/kernel/qplatformthemeplugin.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/kernel/qinputdevicemanager_p.h b/src/gui/kernel/qinputdevicemanager_p.h index d73c5526d0..74494d712b 100644 --- a/src/gui/kernel/qinputdevicemanager_p.h +++ b/src/gui/kernel/qinputdevicemanager_p.h @@ -72,7 +72,7 @@ public: DeviceTypeTablet }; - QInputDeviceManager(QObject *parent = 0); + QInputDeviceManager(QObject *parent = nullptr); int deviceCount(DeviceType type) const; diff --git a/src/gui/kernel/qplatforminputcontextplugin_p.h b/src/gui/kernel/qplatforminputcontextplugin_p.h index 3f45df922e..2228d5c8d6 100644 --- a/src/gui/kernel/qplatforminputcontextplugin_p.h +++ b/src/gui/kernel/qplatforminputcontextplugin_p.h @@ -66,7 +66,7 @@ class Q_GUI_EXPORT QPlatformInputContextPlugin : public QObject { Q_OBJECT public: - explicit QPlatformInputContextPlugin(QObject *parent = 0); + explicit QPlatformInputContextPlugin(QObject *parent = nullptr); ~QPlatformInputContextPlugin(); virtual QPlatformInputContext *create(const QString &key, const QStringList ¶mList) = 0; diff --git a/src/gui/kernel/qplatformintegrationplugin.h b/src/gui/kernel/qplatformintegrationplugin.h index f1136965b7..6a0b9dc9a7 100644 --- a/src/gui/kernel/qplatformintegrationplugin.h +++ b/src/gui/kernel/qplatformintegrationplugin.h @@ -64,7 +64,7 @@ class Q_GUI_EXPORT QPlatformIntegrationPlugin : public QObject { Q_OBJECT public: - explicit QPlatformIntegrationPlugin(QObject *parent = 0); + explicit QPlatformIntegrationPlugin(QObject *parent = nullptr); ~QPlatformIntegrationPlugin(); virtual QPlatformIntegration *create(const QString &key, const QStringList ¶mList); diff --git a/src/gui/kernel/qplatformsharedgraphicscache.h b/src/gui/kernel/qplatformsharedgraphicscache.h index e11d2f41a9..b3b5488139 100644 --- a/src/gui/kernel/qplatformsharedgraphicscache.h +++ b/src/gui/kernel/qplatformsharedgraphicscache.h @@ -69,7 +69,7 @@ public: OpenGLTexture }; - explicit QPlatformSharedGraphicsCache(QObject *parent = 0) : QObject(parent) {} + explicit QPlatformSharedGraphicsCache(QObject *parent = nullptr) : QObject(parent) {} virtual void beginRequestBatch() = 0; virtual void ensureCacheInitialized(const QByteArray &cacheId, BufferType bufferType, diff --git a/src/gui/kernel/qplatformthemeplugin.h b/src/gui/kernel/qplatformthemeplugin.h index 7b56879940..0f88806b0b 100644 --- a/src/gui/kernel/qplatformthemeplugin.h +++ b/src/gui/kernel/qplatformthemeplugin.h @@ -63,7 +63,7 @@ class Q_GUI_EXPORT QPlatformThemePlugin : public QObject { Q_OBJECT public: - explicit QPlatformThemePlugin(QObject *parent = 0); + explicit QPlatformThemePlugin(QObject *parent = nullptr); ~QPlatformThemePlugin(); virtual QPlatformTheme *create(const QString &key, const QStringList ¶mList) = 0;