Differences From Artifact [078e9942b2]:
- File src/OFDictionary.m — part of check-in [c90c6510f1] at 2009-05-04 18:04:28 on branch trunk — Add - averageItemsPerBucket to OFDictionary. (user: js, size: 4570) [annotate] [blame] [check-ins using]
To Artifact [8b4c9a4782]:
- File
src/OFDictionary.m
— part of check-in
[9338313079]
at
2009-05-05 14:00:10
on branch trunk
— There is a good reason to return id and not OFObject*.
When using OFObject*, you have to cast to get rid of a warning when
calling methods on the returned object. (user: js, size: 4574) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
122 123 124 125 126 127 128 | [data[hash] append: key]; [data[hash] append: obj]; return self; } | | | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | [data[hash] append: key]; [data[hash] append: obj]; return self; } - (id)get: (OFObject*)key { uint32_t hash; of_list_object_t *iter; if (key == nil) @throw [OFInvalidArgumentException newWithClass: isa]; |
︙ | ︙ |