From 878aad687ea674c03741ebab031c9b8374a8cc6a Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 16 Jan 2024 13:00:56 +0000 Subject: [PATCH] ObjCHelpers: Remove unnecessary __block variables --- modules/juce_core/native/juce_ObjCHelpers_mac.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/juce_core/native/juce_ObjCHelpers_mac.h b/modules/juce_core/native/juce_ObjCHelpers_mac.h index c7c6175922..7f3cb7a880 100644 --- a/modules/juce_core/native/juce_ObjCHelpers_mac.h +++ b/modules/juce_core/native/juce_ObjCHelpers_mac.h @@ -435,10 +435,7 @@ constexpr auto getSignature (Result (Class::*) (Args...) const) { return Signatu template auto createObjCBlockImpl (Class* object, Fn func, Signature) { - __block auto _this = object; - __block auto _func = func; - - return [[^Result (Params... params) { return (_this->*_func) (params...); } copy] autorelease]; + return [[^Result (Params... params) { return (object->*func) (params...); } copy] autorelease]; } } // namespace detail