Differences From Artifact [a9ccdce0b3]:
- File src/OFDictionary.m — part of check-in [e07fa89b44] at 2014-02-08 18:04:30 on branch trunk — Add JSON5 output option (user: js, size: 15394) [annotate] [blame] [check-ins using]
To Artifact [64a914391d]:
- File
src/OFDictionary.m
— part of check-in
[68d32a92c1]
at
2014-06-16 15:06:26
on branch trunk
— Make return type of -[OFArray objects] const
After all, this might (and does for OFArray_adjacent!) return an
internal representation that must not be changed, so changes should be
prevented at compile-time. (user: js, size: 15400) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
219 220 221 222 223 224 225 | return [self initWithKeysAndObjects: key, object, nil]; } - initWithObjects: (OFArray*)objects_ forKeys: (OFArray*)keys_ { | | | 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | return [self initWithKeysAndObjects: key, object, nil]; } - initWithObjects: (OFArray*)objects_ forKeys: (OFArray*)keys_ { id const *objects, *keys; size_t count; @try { count = [objects_ count]; if (count != [keys_ count]) @throw [OFInvalidArgumentException exception]; |
︙ | ︙ |