comparison plugin/LADSPAPluginInstance.cpp @ 973:7aa9088e9bcd

Fix various slightly dodgy derefs and the like (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:20:18 +0100
parents e802e550a1f2
children b14064bd1f97
comparison
equal deleted inserted replaced
972:a0573186435e 973:7aa9088e9bcd
121 LADSPAPluginInstance::ParameterList 121 LADSPAPluginInstance::ParameterList
122 LADSPAPluginInstance::getParameterDescriptors() const 122 LADSPAPluginInstance::getParameterDescriptors() const
123 { 123 {
124 ParameterList list; 124 ParameterList list;
125 LADSPAPluginFactory *f = dynamic_cast<LADSPAPluginFactory *>(m_factory); 125 LADSPAPluginFactory *f = dynamic_cast<LADSPAPluginFactory *>(m_factory);
126 if (!f) return list;
126 127
127 for (unsigned int i = 0; i < m_controlPortsIn.size(); ++i) { 128 for (unsigned int i = 0; i < m_controlPortsIn.size(); ++i) {
128 129
129 ParameterDescriptor pd; 130 ParameterDescriptor pd;
130 unsigned int pn = m_controlPortsIn[i].first; 131 unsigned int pn = m_controlPortsIn[i].first;