Browse Source

Fix to Array::removeAllInstanceOf.

tags/2021-05-28
jules 13 years ago
parent
commit
310c063195
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      modules/juce_core/containers/juce_Array.h

+ 1
- 2
modules/juce_core/containers/juce_Array.h View File

@@ -770,10 +770,9 @@ public:
void removeAllInstancesOf (ParameterType valueToRemove) void removeAllInstancesOf (ParameterType valueToRemove)
{ {
const ScopedLockType lock (getLock()); const ScopedLockType lock (getLock());
ElementType* const e = data.elements;
for (int i = numUsed; --i >= 0;) for (int i = numUsed; --i >= 0;)
if (valueToRemove == e[i])
if (valueToRemove == data.elements[i])
remove (i); remove (i);
} }


Loading…
Cancel
Save