mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fix for Array move operator.
This commit is contained in:
parent
e6ee6e50de
commit
ff6e3bdace
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue