Differences From Artifact [2a7841384c]:
- File
src/OFPair.h
— 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: 2121) [annotate] [blame] [check-ins using]
To Artifact [af50510417]:
- File src/OFPair.h — part of check-in [262b3c5801] at 2017-10-17 21:06:30 on branch trunk — OF{Pair,Triple}: Add designated initializer (user: js, size: 2151) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
60 61 62 63 64 65 66 | * @brief Initializes an already allocated OFPair with the specified objects. * * @param firstObject The first object for the pair * @param secondObject The second object for the pair * @return An initialized OFPair */ - (instancetype)initWithFirstObject: (nullable FirstType)firstObject | | > | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | * @brief Initializes an already allocated OFPair with the specified objects. * * @param firstObject The first object for the pair * @param secondObject The second object for the pair * @return An initialized OFPair */ - (instancetype)initWithFirstObject: (nullable FirstType)firstObject secondObject: (nullable SecondType)secondObject OF_DESIGNATED_INITIALIZER; #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # undef FirstType # undef SecondType #endif @end OF_ASSUME_NONNULL_END #import "OFMutablePair.h" |