Differences From Artifact [c2545c6818]:
- File src/OFDictionary.h — part of check-in [c90c6510f1] at 2009-05-04 18:04:28 on branch trunk — Add - averageItemsPerBucket to OFDictionary. (user: js, size: 2006) [annotate] [blame] [check-ins using]
To Artifact [7c028d029d]:
- File
src/OFDictionary.h
— 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: 2010) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
60 61 62 63 64 65 66 | - set: (OFObject*)key to: (OFObject*)obj; /** * \param key The key whose object should be returned * \return The object for the given key */ | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - set: (OFObject*)key to: (OFObject*)obj; /** * \param key The key whose object should be returned * \return The object for the given key */ - (id)get: (OFObject*)key; /** * Remove the object with the given key from the dictionary. * * \param key The key whose object should be removed */ - remove: (OFObject*)key; |
︙ | ︙ |