1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a live build error compiling the numeric header

This commit is contained in:
Tom Poole 2018-11-10 15:16:50 +00:00
parent 3ccbd29b39
commit aa40ea1eb8
2 changed files with 8 additions and 10 deletions

View file

@ -39,8 +39,6 @@
#include "juce_audio_processors.h"
#include <juce_gui_extra/juce_gui_extra.h>
#include <numeric>
//==============================================================================
#if JUCE_MAC
#if JUCE_SUPPORT_CARBON \

View file

@ -429,14 +429,14 @@ bool AudioProcessorValueTreeState::flushParameterValuesToValueTree()
{
ScopedLock lock (valueTreeChanging);
return std::accumulate (std::begin (parameters), std::end (parameters),
false,
[this](bool anyUpdated, std::unique_ptr<ParameterAdapter>& ap) {
return ap->flushToTree (getChildValueTree (ap->getParameter().paramID),
valuePropertyID,
undoManager)
|| anyUpdated;
});
bool anyUpdated = false;
for (auto& p : parameters)
anyUpdated |= p->flushToTree (getChildValueTree (p->getParameter().paramID),
valuePropertyID,
undoManager);
return anyUpdated;
}
void AudioProcessorValueTreeState::timerCallback()