Overview
Comment: | Add a warning about mutating objects in a set. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.7 |
Files: | files | file ages | folders |
SHA3-256: |
c07d060cd834877654bf84f9e956a241 |
User & Date: | js on 2012-12-02 16:42:15 |
Other Links: | branch diff | manifest | tags |
Context
2012-12-02
| ||
16:42 | OFMethod: Add one more NULL check. check-in: edc67e0190 user: js tags: 0.7 | |
16:42 | Add a warning about mutating objects in a set. check-in: c07d060cd8 user: js tags: 0.7 | |
2012-12-01
| ||
18:29 | Increase library version minor. check-in: e1996effd2 user: js tags: 0.7 | |
Changes
Modified src/OFSet.h from [e720d47024] to [84fe8aa7db].
︙ | ︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #ifdef OF_HAVE_BLOCKS typedef void (^of_set_enumeration_block_t)(id object, BOOL *stop); typedef BOOL (^of_set_filter_block_t)(id object); #endif /** * \brief An abstract class for an unordered set of unique objects. */ @interface OFSet: OFObject <OFCollection, OFCopying, OFMutableCopying, OFSerialization> /** * \brief Creates a new set. * * \return A new, autoreleased set | > > > | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #ifdef OF_HAVE_BLOCKS typedef void (^of_set_enumeration_block_t)(id object, BOOL *stop); typedef BOOL (^of_set_filter_block_t)(id object); #endif /** * \brief An abstract class for an unordered set of unique objects. * * \warning Do not mutate objects that are in a set! Changing the hash of * objects in a set breaks the internal representation of the set! */ @interface OFSet: OFObject <OFCollection, OFCopying, OFMutableCopying, OFSerialization> /** * \brief Creates a new set. * * \return A new, autoreleased set |
︙ | ︙ |