Differences From Artifact [e2872c89cd]:
- File
src/OFList.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 9269) [annotate] [blame] [check-ins using]
To Artifact [8973979249]:
- File
src/OFList.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: 9300) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 | @synthesize lastListObject = _lastListObject; + (instancetype)list { return [[[self alloc] init] autorelease]; } | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | @synthesize lastListObject = _lastListObject; + (instancetype)list { return [[[self alloc] init] autorelease]; } - (instancetype)initWithSerialization: (OFXMLElement *)element { self = [self init]; @try { void *pool = objc_autoreleasePoolPush(); if (![[element name] isEqual: [self className]] || |
︙ | ︙ | |||
264 265 266 267 268 269 270 | [iter->object release]; [self freeMemory: iter]; } _firstListObject = _lastListObject = NULL; } | | | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | [iter->object release]; [self freeMemory: iter]; } _firstListObject = _lastListObject = NULL; } - (id)copy { OFList *copy = [[[self class] alloc] init]; of_list_object_t *listObject, *previous; listObject = NULL; previous = NULL; |
︙ | ︙ | |||
400 401 402 403 404 405 406 | return [[[OFListEnumerator alloc] initWithList: self mutationsPointer: &_mutations] autorelease]; } @end @implementation OFListEnumerator | | | | 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | return [[[OFListEnumerator alloc] initWithList: self mutationsPointer: &_mutations] autorelease]; } @end @implementation OFListEnumerator - (instancetype)initWithList: (OFList *)list mutationsPointer: (unsigned long *)mutationsPtr { self = [super init]; _list = [list retain]; _current = [list firstListObject]; _mutations = *mutationsPtr; _mutationsPtr = mutationsPtr; |
︙ | ︙ |