Differences From Artifact [7043b6c404]:
- File src/OFTarArchiveEntry.m — part of check-in [f97084d9c3] at 2017-10-01 21:06:34 on branch trunk — Fix compilation with GCC (user: js, size: 7358) [annotate] [blame] [check-ins using]
To Artifact [77919567f7]:
- File
src/OFTarArchiveEntry.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: 7394) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
72 73 74 75 76 77 78 | @implementation OFTarArchiveEntry + (instancetype)entryWithFileName: (OFString *)fileName { return [[[self alloc] initWithFileName: fileName] autorelease]; } | | | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | @implementation OFTarArchiveEntry + (instancetype)entryWithFileName: (OFString *)fileName { return [[[self alloc] initWithFileName: fileName] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)of_initWithHeader: (unsigned char [512])header { self = [super init]; |
︙ | ︙ | |||
137 138 139 140 141 142 143 | [self release]; @throw e; } return self; } | | | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | [self release]; @throw e; } return self; } - (instancetype)initWithFileName: (OFString *)fileName { self = [super init]; @try { _fileName = [fileName copy]; _type = OF_TAR_ARCHIVE_ENTRY_TYPE_FILE; _mode = 0644; |
︙ | ︙ | |||
164 165 166 167 168 169 170 | [_targetFileName release]; [_owner release]; [_group release]; [super dealloc]; } | | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | [_targetFileName release]; [_owner release]; [_group release]; [super dealloc]; } - (id)copy { return [self retain]; } - (id)mutableCopy { OFTarArchiveEntry *copy = [[OFMutableTarArchiveEntry alloc] initWithFileName: _fileName]; @try { copy->_mode = _mode; copy->_size = _size; |
︙ | ︙ |