Differences From Artifact [df99b8af7c]:
- File
src/OFMapTable.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: 7998) [annotate] [blame] [check-ins using]
To Artifact [36496cd646]:
- File
src/OFMapTable.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 7959) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
84 85 86 87 88 89 90 91 92 93 94 95 96 97 | @property (readonly, nonatomic) of_map_table_functions_t keyFunctions; /*! * The object functions used by the map table. */ @property (readonly, nonatomic) of_map_table_functions_t objectFunctions; /*! * @brief Creates a new OFMapTable with the specified key and object functions. * * @param keyFunctions A structure of functions for handling keys * @param objectFunctions A structure of functions for handling objects * @return A new autoreleased OFMapTable */ | > > > > > | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | @property (readonly, nonatomic) of_map_table_functions_t keyFunctions; /*! * The object functions used by the map table. */ @property (readonly, nonatomic) of_map_table_functions_t objectFunctions; /*! * The number of objects in the map table. */ @property (readonly, nonatomic) size_t count; /*! * @brief Creates a new OFMapTable with the specified key and object functions. * * @param keyFunctions A structure of functions for handling keys * @param objectFunctions A structure of functions for handling objects * @return A new autoreleased OFMapTable */ |
︙ | ︙ | |||
138 139 140 141 142 143 144 | * @return An initialized OFMapTable */ - (instancetype)initWithKeyFunctions: (of_map_table_functions_t)keyFunctions objectFunctions: (of_map_table_functions_t)objectFunctions capacity: (size_t)capacity OF_DESIGNATED_INITIALIZER; | < < < < < < < | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | * @return An initialized OFMapTable */ - (instancetype)initWithKeyFunctions: (of_map_table_functions_t)keyFunctions objectFunctions: (of_map_table_functions_t)objectFunctions capacity: (size_t)capacity OF_DESIGNATED_INITIALIZER; /*! * @brief Returns the object for the given key or NULL if the key was not found. * * @param key The key whose object should be returned * @return The object for the given key or NULL if the key was not found */ - (nullable void *)objectForKey: (void *)key; |
︙ | ︙ |