mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Small fix in ReferenceCountedArray
This commit is contained in:
parent
725947d764
commit
8a7f992725
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ public:
|
|||
ReferenceCountedArray (const ReferenceCountedArray<OtherObjectClass, OtherCriticalSection>& other) noexcept
|
||||
{
|
||||
const typename ReferenceCountedArray<OtherObjectClass, OtherCriticalSection>::ScopedLockType lock (other.getLock());
|
||||
numUsed = other.numUsed;
|
||||
numUsed = other.size();
|
||||
data.setAllocatedSize (numUsed);
|
||||
memcpy (data.elements, other.getRawDataPointer(), (size_t) numUsed * sizeof (ObjectClass*));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue