comparison plugin/DSSIPluginInstance.cpp @ 724:7eb389da7976

Fix cppcheck warnings
author Chris Cannam
date Fri, 18 May 2012 09:48:19 +0100
parents 1424aa29ae95
children 373923435472 e802e550a1f2
comparison
equal deleted inserted replaced
723:21d39720d5da 724:7eb389da7976
453 453
454 454
455 void 455 void
456 DSSIPluginInstance::instantiate(unsigned long sampleRate) 456 DSSIPluginInstance::instantiate(unsigned long sampleRate)
457 { 457 {
458 if (!m_descriptor) return;
459
458 #ifdef DEBUG_DSSI 460 #ifdef DEBUG_DSSI
459 std::cout << "DSSIPluginInstance::instantiate - plugin \"unique\" id = " 461 std::cout << "DSSIPluginInstance::instantiate - plugin \"unique\" id = "
460 << m_descriptor->LADSPA_Plugin->UniqueID << std::endl; 462 << m_descriptor->LADSPA_Plugin->UniqueID << std::endl;
461 #endif 463 #endif
462 if (!m_descriptor) return;
463
464 const LADSPA_Descriptor *descriptor = m_descriptor->LADSPA_Plugin; 464 const LADSPA_Descriptor *descriptor = m_descriptor->LADSPA_Plugin;
465 465
466 if (!descriptor->instantiate) { 466 if (!descriptor->instantiate) {
467 std::cerr << "Bad plugin: plugin id " << descriptor->UniqueID 467 std::cerr << "Bad plugin: plugin id " << descriptor->UniqueID
468 << ":" << descriptor->Label 468 << ":" << descriptor->Label