From 64ad16f8cb398fd6d8ad21745bb8609a004f8ca0 Mon Sep 17 00:00:00 2001 From: xenakios Date: Fri, 29 Dec 2017 19:31:12 +0200 Subject: [PATCH] Clean up parameter components initing --- Source/PluginEditor.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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);