Browse Source

Fixed a compiler warning

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
98483e826a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 4
- 4
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1351,11 +1351,11 @@ public:
{
if (pluginInstance->getBypassParameter() == nullptr)
{
auto privateData = ValueTree::readFromData (data, static_cast<size_t> (sizeInBytes));
auto isBypassed = static_cast<bool> (privateData.getProperty ("Bypass", var (false)));
if (auto* bypassParam = comPluginInstance->getBypassParameter())
setBypassed (isBypassed ? 1.0f : 0.0f);
{
auto privateData = ValueTree::readFromData (data, static_cast<size_t> (sizeInBytes));
setBypassed (static_cast<bool> (privateData.getProperty ("Bypass", var (false))));
}
}
}


Loading…
Cancel
Save