Differences From Artifact [2b8f65eef1]:
- File src/OFIntrospection.m — part of check-in [c64a6fd74d] at 2012-10-16 13:03:43 on branch trunk — Make OFMethods comparable and hashable. (user: js, size: 7058) [annotate] [blame] [check-ins using]
To Artifact [e8a22a012c]:
- File
src/OFIntrospection.m
— part of check-in
[edc67e0190]
at
2012-12-02 16:42:27
on branch 0.7
— OFMethod: Add one more NULL check.
This makes sure we never compare anything with NULL. (user: js, size: 7125) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
111 112 113 114 115 116 117 | if (![otherMethod->name isEqual: name]) return NO; if ((otherMethod->typeEncoding == NULL && typeEncoding != NULL) || (otherMethod->typeEncoding != NULL && typeEncoding == NULL)) return NO; | > > | | 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | if (![otherMethod->name isEqual: name]) return NO; if ((otherMethod->typeEncoding == NULL && typeEncoding != NULL) || (otherMethod->typeEncoding != NULL && typeEncoding == NULL)) return NO; if (otherMethod->typeEncoding != NULL && typeEncoding != NULL && strcmp(otherMethod->typeEncoding, typeEncoding)) return NO; return YES; } - (uint32_t)hash { |
︙ | ︙ |