diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 6fa29a5..7293dbd 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -48,16 +48,11 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (Pa { AudioProcessorParameterWithID* parid = dynamic_cast(pars[i]); jassert(parid); - if (parid) - { - bool notifyonlyonrelease = false; - if (parid->paramID.startsWith("fftsize")) - notifyonlyonrelease = true; - if (parid->paramID.startsWith("numoutchans")) - notifyonlyonrelease = true; - m_parcomps.push_back(std::make_shared(pars[i],notifyonlyonrelease)); - addAndMakeVisible(m_parcomps.back().get()); - } + bool notifyonlyonrelease = false; + if (parid->paramID.startsWith("fftsize") || parid->paramID.startsWith("numoutchans")) + notifyonlyonrelease = true; + m_parcomps.push_back(std::make_shared(pars[i],notifyonlyonrelease)); + addAndMakeVisible(m_parcomps.back().get()); } //addAndMakeVisible(&m_specvis);