Skip to content

Commit

Permalink
no need to cast Class to id
Browse files Browse the repository at this point in the history
  • Loading branch information
ElfSundae committed May 29, 2019
1 parent 6983938 commit 800fc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESFramework/Foundation/ESHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void ESSwizzleInstanceMethod(Class class, SEL originalSelector, SEL swizzledSele

void ESSwizzleClassMethod(Class class, SEL originalSelector, SEL swizzledSelector)
{
class = object_getClass((id)class);
class = object_getClass(class);
Method originalMethod = class_getClassMethod(class, originalSelector);
Method swizzledMethod = class_getClassMethod(class, swizzledSelector);
if (class_addMethod(class, originalSelector, method_getImplementation(swizzledMethod), method_getTypeEncoding(swizzledMethod))) {
Expand Down

0 comments on commit 800fc30

Please sign in to comment.