Browse Source

cleaned up a method in Array

tags/2021-05-28
jules 8 years ago
parent
commit
df14b18c17
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_core/containers/juce_Array.h

+ 3
- 3
modules/juce_core/containers/juce_Array.h View File

@@ -207,10 +207,10 @@ public:
/** Fills the Array with the provided value. */
void fill (const ParameterType& newValue) noexcept
{
auto n = size();
const ScopedLockType lock (getLock());
for (int i = 0; i < n; ++i)
setUnchecked (i, newValue);
for (auto& e : *this)
e = newValue;
}
//==============================================================================


Loading…
Cancel
Save