Browse Source

Rolled back an array comparator change which could cause unexpected problems with ScopedPointers.

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

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

@@ -471,8 +471,8 @@ public:
@returns the index of the element, or -1 if it's not found
@see addSorted, sort
*/
template <typename ElementComparator, typename TargetValueType>
int indexOfSorted (ElementComparator& comparator, TargetValueType objectToLookFor) const noexcept
template <typename ElementComparator>
int indexOfSorted (ElementComparator& comparator, const ObjectClass* const objectToLookFor) const noexcept
{
(void) comparator;
const ScopedLockType lock (getLock());


Loading…
Cancel
Save