Differences From Artifact [cd9a853dd9]:
- File src/OFFile.m — part of check-in [481225349f] at 2017-09-24 12:24:23 on branch trunk — OFStream: Add support for async writes (user: js, size: 10369) [annotate] [blame] [check-ins using]
To Artifact [3ace3f34b9]:
- File
src/OFFile.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: 10411) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
184 185 186 187 188 189 190 | } + (instancetype)fileWithHandle: (of_file_handle_t)handle { return [[[self alloc] initWithHandle: handle] autorelease]; } | | | | | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | } + (instancetype)fileWithHandle: (of_file_handle_t)handle { return [[[self alloc] initWithHandle: handle] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)initWithPath: (OFString *)path mode: (OFString *)mode { of_file_handle_t handle; @try { void *pool = objc_autoreleasePoolPush(); int flags; |
︙ | ︙ | |||
298 299 300 301 302 303 304 | closeHandle(handle); @throw e; } return self; } | | | 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | closeHandle(handle); @throw e; } return self; } - (instancetype)initWithHandle: (of_file_handle_t)handle { self = [super init]; _handle = handle; return self; } |
︙ | ︙ |