comparison plugin/LADSPAPluginInstance.cpp @ 724:7eb389da7976

Fix cppcheck warnings
author Chris Cannam
date Fri, 18 May 2012 09:48:19 +0100
parents 1424aa29ae95
children e802e550a1f2
comparison
equal deleted inserted replaced
723:21d39720d5da 724:7eb389da7976
377 377
378 378
379 void 379 void
380 LADSPAPluginInstance::instantiate(unsigned long sampleRate) 380 LADSPAPluginInstance::instantiate(unsigned long sampleRate)
381 { 381 {
382 if (!m_descriptor) return;
383
382 #ifdef DEBUG_LADSPA 384 #ifdef DEBUG_LADSPA
383 std::cout << "LADSPAPluginInstance::instantiate - plugin unique id = " 385 std::cout << "LADSPAPluginInstance::instantiate - plugin unique id = "
384 << m_descriptor->UniqueID << std::endl; 386 << m_descriptor->UniqueID << std::endl;
385 #endif 387 #endif
386 if (!m_descriptor) return;
387 388
388 if (!m_descriptor->instantiate) { 389 if (!m_descriptor->instantiate) {
389 std::cerr << "Bad plugin: plugin id " << m_descriptor->UniqueID 390 std::cerr << "Bad plugin: plugin id " << m_descriptor->UniqueID
390 << ":" << m_descriptor->Label 391 << ":" << m_descriptor->Label
391 << " has no instantiate method!" << std::endl; 392 << " has no instantiate method!" << std::endl;