Skip to content

Commit

Permalink
Move isDynamic back
Browse files Browse the repository at this point in the history
  • Loading branch information
imhuntingwabbits committed Sep 20, 2015
1 parent b400a1a commit 76f22b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OCMock/NSMethodSignature+OCMAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ @implementation NSMethodSignature(OCMAdditions)
+ (NSMethodSignature *)signatureForDynamicPropertyMatchingSelector:(SEL)selector inClass:(Class)aClass
{
BOOL isGetter = YES;
BOOL isDynamic = NO;
NSString *propertyName = NSStringFromSelector(selector);
objc_property_t property = class_getProperty(aClass, [propertyName cStringUsingEncoding:NSASCIIStringEncoding]);
if(property == NULL) {
Expand Down Expand Up @@ -79,6 +78,7 @@ + (NSMethodSignature *)signatureForDynamicPropertyMatchingSelector:(SEL)selector
NSArray *propertyAttributes = [[NSString stringWithCString:propertyAttributesString
encoding:NSASCIIStringEncoding] componentsSeparatedByString:@","];
NSString *typeStr = nil;
BOOL isDynamic = NO;
for(NSString *attribute in propertyAttributes)
{
if([attribute isEqualToString:@"D"])
Expand Down

0 comments on commit 76f22b3

Please sign in to comment.