Differences From Artifact [c8f541f60e]:
- File src/OFZIPArchiveEntry.m — part of check-in [de6e2319ca] at 2017-08-14 00:45:43 on branch trunk — OFZIPArchive(Entry): A logic and a typo fix (user: js, size: 12527) [annotate] [blame] [check-ins using] [more...]
To Artifact [a552090953]:
- File
src/OFZIPArchiveEntry.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: 12563) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
143 144 145 146 147 148 149 | @implementation OFZIPArchiveEntry + (instancetype)entryWithFileName: (OFString *)fileName { return [[[self alloc] initWithFileName: fileName] autorelease]; } | | | | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | @implementation OFZIPArchiveEntry + (instancetype)entryWithFileName: (OFString *)fileName { return [[[self alloc] initWithFileName: fileName] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)initWithFileName: (OFString *)fileName { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); if ([fileName UTF8StringLength] > UINT16_MAX) |
︙ | ︙ | |||
267 268 269 270 271 272 273 | [_fileName release]; [_extraField release]; [_fileComment release]; [super dealloc]; } | | | | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | [_fileName release]; [_extraField release]; [_fileComment release]; [super dealloc]; } - (id)copy { return [self retain]; } - (id)mutableCopy { OFZIPArchiveEntry *copy = [[OFMutableZIPArchiveEntry alloc] initWithFileName: _fileName]; @try { copy->_versionMadeBy = _versionMadeBy; copy->_minVersionNeeded = _minVersionNeeded; |
︙ | ︙ |