Differences From Artifact [259e8f3f61]:
- File src/exceptions/OFAllocFailedException.m — part of check-in [4df6ab6bca] at 2017-05-13 16:56:44 on branch trunk — Fix compilation with GCC (user: js, size: 1561) [annotate] [blame] [check-ins using]
To Artifact [a4ecf96225]:
- File
src/exceptions/OFAllocFailedException.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: 1617) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | @implementation OFAllocFailedException + (instancetype)exception { OF_UNRECOGNIZED_SELECTOR } | | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | @implementation OFAllocFailedException + (instancetype)exception { OF_UNRECOGNIZED_SELECTOR } + (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } - (instancetype)init { OF_INVALID_INIT_METHOD } - (void *)allocMemoryWithSize: (size_t)size { OF_UNRECOGNIZED_SELECTOR |
︙ | ︙ | |||
60 61 62 63 64 65 66 | } - (void)freeMemory: (void *)ptr { OF_UNRECOGNIZED_SELECTOR } | | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | } - (void)freeMemory: (void *)ptr { OF_UNRECOGNIZED_SELECTOR } - (instancetype)retain { return self; } - (instancetype)autorelease { return self; } - (unsigned int)retainCount { return OF_RETAIN_COUNT_MAX; |
︙ | ︙ |