Differences From Artifact [fd16e0b90e]:
- File src/OFMutablePair.m — part of check-in [143a03a8f0] at 2017-09-09 18:45:27 on branch trunk — Add missing #include "config.h" (user: js, size: 1112) [annotate] [blame] [check-ins using]
To Artifact [ce5e567f88]:
- File
src/OFMutablePair.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: 1116) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
31 32 33 34 35 36 37 | - (void)setSecondObject: (id)secondObject { id old = _secondObject; _secondObject = [secondObject retain]; [old release]; } | | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - (void)setSecondObject: (id)secondObject { id old = _secondObject; _secondObject = [secondObject retain]; [old release]; } - (id)copy { OFMutablePair *copy = [self mutableCopy]; [copy makeImmutable]; return copy; } - (void)makeImmutable { object_setClass(self, [OFPair class]); } @end |