Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

No need to class class on self inside class method

  • Loading branch information...
commit df124d68cb7cdd4e7407b15fa99ceccc00b97fcb 1 parent c057f03
Oliver Drobnik authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Core/Source/NSObject+DTRuntime.m
2  Core/Source/NSObject+DTRuntime.m
@@ -54,7 +54,7 @@ + (BOOL)addInstanceMethodWithSelectorName:(NSString *)selectorName block:(void(^
54 54 IMP myIMP = imp_implementationWithBlock(impBlockForIMP);
55 55
56 56 SEL selector = NSSelectorFromString(selectorName);
57   - return class_addMethod([self class], selector, myIMP, "v@:");
  57 + return class_addMethod(self, selector, myIMP, "v@:");
58 58 }
59 59
60 60 #pragma mark - Method Swizzling

0 comments on commit df124d6

Please sign in to comment.
Something went wrong with that request. Please try again.