Browse Source

Fixes for SortedSet.

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

+ 2
- 2
modules/juce_core/containers/juce_SortedSet.h View File

@@ -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…
Cancel
Save