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.