From 0425df49d75c3bee655c2590d8ef22dac9bac3fa Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 21 Jun 2012 15:13:58 +0100 Subject: [PATCH] Rolled back an array comparator change which could cause unexpected problems with ScopedPointers. --- modules/juce_core/containers/juce_OwnedArray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/containers/juce_OwnedArray.h b/modules/juce_core/containers/juce_OwnedArray.h index fee72bbbd4..dd8ce31ed1 100644 --- a/modules/juce_core/containers/juce_OwnedArray.h +++ b/modules/juce_core/containers/juce_OwnedArray.h @@ -471,8 +471,8 @@ public: @returns the index of the element, or -1 if it's not found @see addSorted, sort */ - template - int indexOfSorted (ElementComparator& comparator, TargetValueType objectToLookFor) const noexcept + template + int indexOfSorted (ElementComparator& comparator, const ObjectClass* const objectToLookFor) const noexcept { (void) comparator; const ScopedLockType lock (getLock());