From 23af4505dd940c4a8867a58021057ce1ddef838b Mon Sep 17 00:00:00 2001 From: daniel Date: Sat, 7 Apr 2018 15:37:19 -0700 Subject: [PATCH] Fix: CPProxy uses incorrect variable name in method call On line 51 of CPProxy, `class_getInstanceMethod` is called with the variable `aSelector`, but this variable does not exist in the context, but a variable named `selector` does. This fix changes the method parameter from `selector` to `aSelector` to match the parameter used within the method. --- Foundation/CPProxy.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/CPProxy.j b/Foundation/CPProxy.j index 2234a6f39..9a4c229bc 100644 --- a/Foundation/CPProxy.j +++ b/Foundation/CPProxy.j @@ -48,7 +48,7 @@ return class_createInstance(self); } -+ (BOOL)respondsToSelector:(SEL)selector ++ (BOOL)respondsToSelector:(SEL)aSelector { return !!class_getInstanceMethod(isa, aSelector); }