From 98483e826a74859960d5cc113cda2f382ca376c6 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 4 Apr 2018 15:52:08 +0100 Subject: [PATCH] Fixed a compiler warning --- .../juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index b0d250f999..614d1f02bc 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1351,11 +1351,11 @@ public: { if (pluginInstance->getBypassParameter() == nullptr) { - auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); - auto isBypassed = static_cast (privateData.getProperty ("Bypass", var (false))); - if (auto* bypassParam = comPluginInstance->getBypassParameter()) - setBypassed (isBypassed ? 1.0f : 0.0f); + { + auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); + setBypassed (static_cast (privateData.getProperty ("Bypass", var (false)))); + } } }