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:
parent
c313a55f83
commit
df14b18c17
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue