1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

VST3 hosting fix.

This commit is contained in:
jules 2014-01-24 13:34:37 +00:00
parent 68fad9f35a
commit 4e8df54b4f

View file

@ -1995,10 +1995,7 @@ public:
//==============================================================================
AudioProcessorEditor* createEditor() override
{
if (view == nullptr)
view = tryCreatingView();
if (view != nullptr)
if (IPlugView* view = tryCreatingView())
return new VST3PluginWindow (this, view);
return nullptr;
@ -2006,9 +2003,7 @@ public:
bool hasEditor() const override
{
if (view == nullptr)
view = tryCreatingView();
ComSmartPtr<IPlugView> view (tryCreatingView());
return view != nullptr;
}
@ -2147,8 +2142,6 @@ private:
ComSmartPtr<Vst::IConnectionPoint> componentConnection;
ComSmartPtr<Vst::IConnectionPoint> editControllerConnection;
mutable ComSmartPtr<IPlugView> view;
/** The number of IO busses MUST match that of the plugin,
even if there aren't enough channels to process,
as very poorly specified by the Steinberg SDK