Differences From Artifact [58b7594810]:
- File src/OFConstantString.m — part of check-in [66c29a31f2] at 2017-10-01 13:43:09 on branch trunk — More nullability and style fixes (user: js, size: 12072) [annotate] [blame] [check-ins using] [more...]
To Artifact [aaf59fe08c]:
- File
src/OFConstantString.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 12163) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
44 45 46 47 48 49 50 | } _OFConstantStringClassReference; #endif @interface OFString_const: OFString_UTF8 @end @implementation OFString_const | | < | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | } _OFConstantStringClassReference; #endif @interface OFString_const: OFString_UTF8 @end @implementation OFString_const + (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } - (void *)allocMemoryWithSize: (size_t)size { OF_UNRECOGNIZED_SELECTOR } - (void *)allocMemoryWithSize: (size_t)size |
︙ | ︙ | |||
79 80 81 82 83 84 85 | } - (void)freeMemory: (void *)pointer { OF_UNRECOGNIZED_SELECTOR } | | | | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | } - (void)freeMemory: (void *)pointer { OF_UNRECOGNIZED_SELECTOR } - (instancetype)retain { return self; } - (instancetype)autorelease { return self; } - (unsigned int)retainCount { return OF_RETAIN_COUNT_MAX; |
︙ | ︙ | |||
161 162 163 164 165 166 167 | } _cString = (char *)ivars; object_setClass(self, [OFString_const class]); } } | | | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | } _cString = (char *)ivars; object_setClass(self, [OFString_const class]); } } + (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } - (void *)allocMemoryWithSize: (size_t)size { OF_UNRECOGNIZED_SELECTOR |
︙ | ︙ | |||
195 196 197 198 199 200 201 | } - (void)freeMemory: (void *)pointer { OF_UNRECOGNIZED_SELECTOR } | | | | 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | } - (void)freeMemory: (void *)pointer { OF_UNRECOGNIZED_SELECTOR } - (instancetype)retain { return self; } - (instancetype)autorelease { return self; } - (unsigned int)retainCount { return OF_RETAIN_COUNT_MAX; |
︙ | ︙ | |||
225 226 227 228 229 230 231 | /* * In all following methods, the constant string is converted to an * OFString_UTF8 and the message sent again. */ /* From protocol OFCopying */ | | | | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | /* * In all following methods, the constant string is converted to an * OFString_UTF8 and the message sent again. */ /* From protocol OFCopying */ - (id)copy { [self finishInitialization]; return [self copy]; } /* From protocol OFMutableCopying */ - (id)mutableCopy { [self finishInitialization]; return [self mutableCopy]; } /* From protocol OFComparing */ |
︙ | ︙ |