Skip to content

Commit

Permalink
Skip const type qualifier for -rac_returnValue
Browse files Browse the repository at this point in the history
  • Loading branch information
kkazuo committed May 11, 2013
1 parent d59b99e commit 4e30b61
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ - (id)rac_returnValue {
} while (0)

const char *typeSignature = self.methodSignature.methodReturnType;
// Skip const type qualifier.
if (typeSignature[0] == 'r') {
typeSignature++;
}

if (strcmp(typeSignature, "@") == 0 || strcmp(typeSignature, "#") == 0) {
__autoreleasing id returnObj;
[self getReturnValue:&returnObj];
Expand Down

0 comments on commit 4e30b61

Please sign in to comment.