1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

cleaned up a method in Array

This commit is contained in:
jules 2017-07-23 09:46:45 +01:00
parent c313a55f83
commit df14b18c17

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;
}
//==============================================================================