Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 48e9f538e6e9 |
children |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/plugin/LADSPAPluginInstance.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -48,20 +48,20 @@ m_descriptor(descriptor), m_blockSize(blockSize), m_sampleRate(sampleRate), - m_latencyPort(0), + m_latencyPort(nullptr), m_run(false), m_bypassed(false) { init(idealChannelCount); if (m_audioPortsIn.size() == 0) { - m_inputBuffers = 0; + m_inputBuffers = nullptr; } else { m_inputBuffers = new sample_t*[m_instanceCount * m_audioPortsIn.size()]; } if (m_audioPortsOut.size() == 0) { - m_outputBuffers = 0; + m_outputBuffers = nullptr; } else { m_outputBuffers = new sample_t*[m_instanceCount * m_audioPortsOut.size()]; }