Differences From Artifact [8ea4251805]:
- File src/OFMutableDictionary.m — part of check-in [98f2fa06d0] at 2009-05-18 23:08:30 on branch trunk — Fix memset on wrong variable in OFMutableDictionary. (user: js, size: 2708) [annotate] [blame] [check-ins using]
To Artifact [da30bcc8d4]:
- File
src/OFMutableDictionary.m
— part of check-in
[a29d403286]
at
2009-05-23 16:50:44
on branch trunk
— A few renames in OFArray, OFDataArray and OFDictionary.
OFArray:
* Rename - object: to - objectAtIndex:.OFDataArray:
* Rename - item: to - itemAtIndex:.OFDictionary:
* Rename - get: to - objectForKey:.
* Rename - set:to: to - setObject:forKey:.
* Rename - remove: to - removeObjectForKey:. (user: js, size: 2732) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
14 15 16 17 18 19 20 | #include <string.h> #import "OFMutableDictionary.h" #import "OFExceptions.h" #import "OFMacros.h" @implementation OFMutableDictionary | > | < | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include <string.h> #import "OFMutableDictionary.h" #import "OFExceptions.h" #import "OFMacros.h" @implementation OFMutableDictionary - setObject: (OFObject*)obj forKey: (OFObject <OFCopying>*)key { uint32_t hash; of_list_object_t *iter, *key_obj; if (key == nil || obj == nil) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; |
︙ | ︙ | |||
56 57 58 59 60 61 62 | [data[hash] remove: key_obj]; @throw e; } return self; } | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | [data[hash] remove: key_obj]; @throw e; } return self; } - removeObjectForKey: (OFObject*)key { uint32_t hash; of_list_object_t *iter; if (key == nil) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; |
︙ | ︙ |