Differences From Artifact [0b4fba9171]:
- File
src/OFINICategory.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: 10850) [annotate] [blame] [check-ins using]
To Artifact [4c38694599]:
- File
src/OFINICategory.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 10850) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
117 118 119 120 121 122 123 | [super dealloc]; } @end @implementation OFINICategory @synthesize name = _name; | | | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | [super dealloc]; } @end @implementation OFINICategory @synthesize name = _name; - (instancetype)of_init { self = [super init]; @try { _lines = [[OFMutableArray alloc] init]; } @catch (id e) { [self release]; |
︙ | ︙ | |||
144 145 146 147 148 149 150 | { [_name release]; [_lines release]; [super dealloc]; } | | | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | { [_name release]; [_lines release]; [super dealloc]; } - (void)of_parseLine: (OFString *)line { if (![line hasPrefix: @";"]) { OFINICategory_Pair *pair = [[[OFINICategory_Pair alloc] init] autorelease]; OFString *key, *value; size_t pos; |
︙ | ︙ | |||
485 486 487 488 489 490 491 | continue; } } objc_autoreleasePoolPop(pool); } | | | 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 | continue; } } objc_autoreleasePoolPop(pool); } - (bool)of_writeToStream: (OFStream *)stream encoding: (of_string_encoding_t)encoding first: (bool)first { if ([_lines count] == 0) return false; if (first) |
︙ | ︙ |