aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect/ladspa/ladspahost.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
commitb917024aa1ac4cb0a40164132db3c6d2913157eb (patch)
tree4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/plugins/Effect/ladspa/ladspahost.cpp
parentbef5a901922c002815d047d276e61ec0bf8c0f46 (diff)
downloadqmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.gz
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.bz2
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.zip
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
Diffstat (limited to 'src/plugins/Effect/ladspa/ladspahost.cpp')
-rw-r--r--src/plugins/Effect/ladspa/ladspahost.cpp8
1 files changed, 4 insertions, 4 deletions
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))
{