Skip to content

Commit

Permalink
Rename method to avoid shadowing unrelated NSObject method (revealed …
Browse files Browse the repository at this point in the history
…by AppCode)
  • Loading branch information
jonreid committed Dec 8, 2012
1 parent 1899559 commit 6592655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Library/Object/HCConformsToProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Protocol *theProtocol;
}

+ (id)conformsToProtocol:(Protocol *)protocol;
+ (id)conformsTo:(Protocol *)protocol;
- (id)initWithProtocol:(Protocol *)protocol;

@end
Expand Down
4 changes: 2 additions & 2 deletions Source/Library/Object/HCConformsToProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@implementation HCConformsToProtocol

+ (id)conformsToProtocol:(Protocol *)protocol
+ (id)conformsTo:(Protocol *)protocol
{
return [[self alloc] initWithProtocol:protocol];
}
Expand Down Expand Up @@ -46,7 +46,7 @@ - (void)describeTo:(id<HCDescription>)description

id<HCMatcher> HC_conformsTo(Protocol *aProtocol)
{
return [HCConformsToProtocol conformsToProtocol:aProtocol];
return [HCConformsToProtocol conformsTo:aProtocol];
}

id<HCMatcher> HC_conformsToProtocol(Protocol *aProtocol)
Expand Down

0 comments on commit 6592655

Please sign in to comment.