From b917024aa1ac4cb0a40164132db3c6d2913157eb Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 3 Jan 2019 07:41:04 +0000 Subject: fixed build with -Werror=zero-as-null-pointer-constant git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8572 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp | 2 +- src/plugins/General/gnomehotkey/mediakeys.cpp | 2 +- src/plugins/General/gnomehotkey/mediakeys.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/General/gnomehotkey') diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp index e22d2d9e9..af50b9e3f 100644 --- a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp +++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp @@ -42,7 +42,7 @@ QObject *GnomeHotkeyFactory::create(QObject *parent) QDialog *GnomeHotkeyFactory::createConfigDialog(QWidget *parent) { Q_UNUSED(parent); - return 0; + return nullptr; } void GnomeHotkeyFactory::showAbout(QWidget *parent) diff --git a/src/plugins/General/gnomehotkey/mediakeys.cpp b/src/plugins/General/gnomehotkey/mediakeys.cpp index 495380173..e4ae96155 100644 --- a/src/plugins/General/gnomehotkey/mediakeys.cpp +++ b/src/plugins/General/gnomehotkey/mediakeys.cpp @@ -33,7 +33,7 @@ MediaKeys::MediaKeys(QObject *parent) : QObject(parent) { m_isRegistered = false; - m_interface = 0; + m_interface = nullptr; if(!QDBusConnection::sessionBus().interface()->isServiceRegistered("org.gnome.SettingsDaemon")) { qWarning("MediaKeys: gnome settings daemon is not running"); diff --git a/src/plugins/General/gnomehotkey/mediakeys.h b/src/plugins/General/gnomehotkey/mediakeys.h index 6533b3443..4fb0028fe 100644 --- a/src/plugins/General/gnomehotkey/mediakeys.h +++ b/src/plugins/General/gnomehotkey/mediakeys.h @@ -33,7 +33,7 @@ class MediaKeys : public QObject { Q_OBJECT public: - explicit MediaKeys(QObject *parent = 0); + explicit MediaKeys(QObject *parent = nullptr); virtual ~MediaKeys(); private slots: -- cgit v1.2.3-13-gbd6f