Differences From Artifact [10ad77a11e]:
- File
src/OFDictionary.m
— part of check-in
[50457cd1fd]
at
2011-06-04 18:49:11
on branch trunk
— Fix a bug in -[OFDictionary initWithKeys:arguments:].
When a key already exists, it means the precalculated count is wrong.
Therefore, decrease count if the key already exists. (user: js, size: 19847) [annotate] [blame] [check-ins using]
To Artifact [c7b3cd8862]:
- File src/OFDictionary.m — part of check-in [183825f113] at 2011-06-05 19:27:02 on branch trunk — Add OFNull class. (user: js, size: 19848) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
485 486 487 488 489 490 491 | OFXMLElement *pair; pool = [[OFAutoreleasePool alloc] init]; if (![[element name] isEqual: @"object"] || ![[element namespace] isEqual: OF_SERIALIZATION_NS] || ![[[element attributeForName: @"class"] stringValue] | | | 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 | OFXMLElement *pair; pool = [[OFAutoreleasePool alloc] init]; if (![[element name] isEqual: @"object"] || ![[element namespace] isEqual: OF_SERIALIZATION_NS] || ![[[element attributeForName: @"class"] stringValue] isEqual: [self className]]) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; dictionary = [OFMutableDictionary dictionary]; pairs = [element elementsForName: @"pair" namespace: OF_SERIALIZATION_NS]; |
︙ | ︙ |