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:
parent
3ccbd29b39
commit
aa40ea1eb8
2 changed files with 8 additions and 10 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue