1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

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

This commit is contained in:
jules 2012-06-21 15:13:58 +01:00
parent 69179fcd82
commit 0425df49d7

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());