Browse Source

Fix for Array move operator.

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

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

@@ -143,6 +143,7 @@ public:
Array& operator= (Array&& other) noexcept
{
const ScopedLockType lock (getLock());
deleteAllElements();
data = static_cast<ArrayAllocationBase<ElementType, TypeOfCriticalSectionToUse>&&> (other.data);
numUsed = other.numUsed;
other.numUsed = 0;


Loading…
Cancel
Save