mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
Fix for CPSet count increasing even if the same object is added repeatedly.
Reviewed by me.
This commit is contained in:
@@ -372,6 +372,9 @@
|
||||
*/
|
||||
- (void)addObject:(id)anObject
|
||||
{
|
||||
if ([self containsObject:anObject])
|
||||
return;
|
||||
|
||||
_contents[[anObject UID]] = anObject;
|
||||
_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user