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/Effect/ladspa/ladspahost.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Effect/ladspa/ladspahost.cpp') diff --git a/src/plugins/Effect/ladspa/ladspahost.cpp b/src/plugins/Effect/ladspa/ladspahost.cpp index 171346a12..b962f3d81 100644 --- a/src/plugins/Effect/ladspa/ladspahost.cpp +++ b/src/plugins/Effect/ladspa/ladspahost.cpp @@ -35,7 +35,7 @@ #define PATH_MAX 4096 #endif -LADSPAHost *LADSPAHost::m_instance = 0; +LADSPAHost *LADSPAHost::m_instance = nullptr; /* Based on xmms_ladspa */ @@ -55,7 +55,7 @@ LADSPAHost::LADSPAHost(QObject *parent) : QObject(parent) int id = settings.value("id").toInt(); - LADSPAPlugin *plugin = 0; + LADSPAPlugin *plugin = nullptr; foreach(LADSPAPlugin *p, plugins()) { if(p->unique_id == id) @@ -78,7 +78,7 @@ LADSPAHost::LADSPAHost(QObject *parent) : QObject(parent) LADSPAHost::~LADSPAHost() { - m_instance = 0; + m_instance = nullptr; QSettings settings(Qmmp::configFile(), QSettings::IniFormat); for(int i = 0; i < settings.value("LADSPA/plugins_number", 0).toInt(); ++i) { @@ -178,7 +178,7 @@ void LADSPAHost::findModules(const QString &path) unsigned long k = 0; const LADSPA_Descriptor *descriptor; - while((descriptor = descriptor_fn(k)) != 0) + while((descriptor = descriptor_fn(k)) != nullptr) { if(LADSPA_IS_INPLACE_BROKEN(descriptor->Properties)) { -- cgit v1.2.3-13-gbd6f