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:
parent
69179fcd82
commit
0425df49d7
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue