diff 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
line wrap: on
line diff
--- a/plugin/DSSIPluginInstance.cpp	Mon Mar 05 08:48:36 2012 +0000
+++ b/plugin/DSSIPluginInstance.cpp	Fri May 18 09:48:19 2012 +0100
@@ -455,12 +455,12 @@
 void
 DSSIPluginInstance::instantiate(unsigned long sampleRate)
 {
+    if (!m_descriptor) return;
+
 #ifdef DEBUG_DSSI
     std::cout << "DSSIPluginInstance::instantiate - plugin \"unique\" id = "
               << m_descriptor->LADSPA_Plugin->UniqueID << std::endl;
 #endif
-    if (!m_descriptor) return;
-
     const LADSPA_Descriptor *descriptor = m_descriptor->LADSPA_Plugin;
 
     if (!descriptor->instantiate) {