mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ObjCHelpers: Remove unnecessary __block variables
This commit is contained in:
parent
67570d34c4
commit
878aad687e
1 changed files with 1 additions and 4 deletions
|
|
@ -435,10 +435,7 @@ constexpr auto getSignature (Result (Class::*) (Args...) const) { return Signatu
|
|||
template <typename Class, typename Fn, typename Result, typename... Params>
|
||||
auto createObjCBlockImpl (Class* object, Fn func, Signature<Result (Params...)>)
|
||||
{
|
||||
__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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue