File tree 1 file changed +3
-3
lines changed
Parse/Internal/Object/Subclassing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,10 +379,10 @@ - (void)_registerSubclassesInBundle:(NSBundle *)bundle {
379
379
// Scary, I know!
380
380
for (Class kls = bundleClass; kls != nil ; kls = class_getSuperclass (kls)) {
381
381
if (kls == pfObjectClass) {
382
- // Do class_conformsToProtocol as late in the checking as possible, as its SUUUPER slow.
382
+ // Do -conformsToProtocol: as late in the checking as possible, as its SUUUPER slow.
383
383
// Behind the scenes this is a strcmp (lolwut?)
384
- if (class_conformsToProtocol ( bundleClass, @protocol (PFSubclassing)) &&
385
- !class_conformsToProtocol ( bundleClass, @protocol (PFSubclassingSkipAutomaticRegistration)) ) {
384
+ if ([ bundleClass conformsToProtocol: @protocol (PFSubclassing)] &&
385
+ ![ bundleClass conformsToProtocol: @protocol (PFSubclassingSkipAutomaticRegistration)] ) {
386
386
[self _rawRegisterSubclass: bundleClass];
387
387
}
388
388
break ;
You can’t perform that action at this time.
0 commit comments