Fix for CPSet count increasing even if the same object is added repeatedly.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-09-01 17:20:00 -07:00
parent 4c01bebd07
commit 7f9bc98929
+3
View File
@@ -372,6 +372,9 @@
*/
- (void)addObject:(id)anObject
{
if ([self containsObject:anObject])
return;
_contents[[anObject UID]] = anObject;
_count++;
}