From 08b737e095dd23ecb8d703f17fd5f702f6ac6029 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 3 Oct 2022 20:37:36 +0100 Subject: [PATCH] VST3 Host: Fix argument forwarding Co-authored-by: Dan Raviv --- .../format_types/juce_VST3PluginFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index fd96781fb1..43ec447636 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -762,9 +762,9 @@ private: const auto iter = attributes.find (attr); if (iter != attributes.end()) - iter->second = Attribute (std::move (value)); + iter->second = Attribute (std::forward (value)); else - attributes.emplace (attr, Attribute (std::move (value))); + attributes.emplace (attr, Attribute (std::forward (value))); return kResultTrue; }