diff plugin/LADSPAPluginInstance.cpp @ 724:7eb389da7976

Fix cppcheck warnings
author Chris Cannam
date Fri, 18 May 2012 09:48:19 +0100
parents 1424aa29ae95
children e802e550a1f2
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp	Mon Mar 05 08:48:36 2012 +0000
+++ b/plugin/LADSPAPluginInstance.cpp	Fri May 18 09:48:19 2012 +0100
@@ -379,11 +379,12 @@
 void
 LADSPAPluginInstance::instantiate(unsigned long sampleRate)
 {
+    if (!m_descriptor) return;
+
 #ifdef DEBUG_LADSPA
     std::cout << "LADSPAPluginInstance::instantiate - plugin unique id = "
               << m_descriptor->UniqueID << std::endl;
 #endif
-    if (!m_descriptor) return;
 
     if (!m_descriptor->instantiate) {
 	std::cerr << "Bad plugin: plugin id " << m_descriptor->UniqueID