mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
Fixes for SortedSet.
This commit is contained in:
parent
51002a72db
commit
ed63dc104c
1 changed files with 2 additions and 2 deletions
|
|
@ -424,7 +424,7 @@ public:
|
|||
if (numElementsToAdd < 0 || startIndex + numElementsToAdd > setToAddFrom.size())
|
||||
numElementsToAdd = setToAddFrom.size() - startIndex;
|
||||
|
||||
addArray (setToAddFrom.elements + startIndex, numElementsToAdd);
|
||||
addArray (setToAddFrom.data.elements + startIndex, numElementsToAdd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -582,7 +582,7 @@ private:
|
|||
if (numberToMove > 0)
|
||||
memmove (insertPos + 1, insertPos, sizeof (ElementType) * (size_t) numberToMove);
|
||||
|
||||
*insertPos = newElement;
|
||||
new (insertPos) ElementType (newElement);
|
||||
++numUsed;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue