From f374eb6d98cdfcff9e93b7a45bb4b66474a37c22 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 7 Oct 2016 18:05:46 +0100 Subject: [PATCH] Fixed SortedSet::remove() to return the removed element --- modules/juce_core/containers/juce_SortedSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/containers/juce_SortedSet.h b/modules/juce_core/containers/juce_SortedSet.h index ec298609cb..207c65ee49 100644 --- a/modules/juce_core/containers/juce_SortedSet.h +++ b/modules/juce_core/containers/juce_SortedSet.h @@ -376,7 +376,7 @@ public: */ ElementType remove (const int indexToRemove) noexcept { - return data.remove (indexToRemove); + return data.removeAndReturn (indexToRemove); } /** Removes an item from the set.