@@ -34,19 +34,19 @@ { if (self == [OFCountedSet_hashtable class]) [self inheritMethodsFromClass: [OFMutableSet_hashtable class]]; } -- initWithSet: (OFSet*)set +- initWithSet: (OFSet *)set { self = [self init]; @try { void *pool = objc_autoreleasePoolPush(); if ([set isKindOfClass: [OFCountedSet class]]) { - OFCountedSet *countedSet = (OFCountedSet*)countedSet; + OFCountedSet *countedSet = (OFCountedSet *)countedSet; for (id object in countedSet) { size_t count = [countedSet countForObject: object]; @@ -64,11 +64,11 @@ } return self; } -- initWithArray: (OFArray*)array +- initWithArray: (OFArray *)array { self = [self init]; @try { id const *objects = [array objects]; @@ -82,11 +82,11 @@ } return self; } -- initWithObjects: (id const*)objects +- initWithObjects: (id const *)objects count: (size_t)count { self = [self init]; @try { @@ -118,11 +118,11 @@ } return self; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { self = [self init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -146,11 +146,11 @@ if (object == nil || count_ == nil) @throw [OFInvalidFormatException exception]; count = (size_t)[[count_ stringValue] decimalValue]; - [_mapTable setObject: (void*)(uintptr_t)count + [_mapTable setObject: (void *)(uintptr_t)count forKey: [object objectByDeserializing]]; objc_autoreleasePoolPop(pool2); } @@ -189,11 +189,11 @@ size_t count = (size_t)(uintptr_t)[_mapTable objectForKey: object]; if (SIZE_MAX - count < 1 || UINTPTR_MAX - count < 1) @throw [OFOutOfRangeException exception]; - [_mapTable setObject: (void*)(uintptr_t)(count + 1) + [_mapTable setObject: (void *)(uintptr_t)(count + 1) forKey: object]; } - (void)removeObject: (id)object { @@ -203,15 +203,15 @@ return; count--; if (count > 0) - [_mapTable setObject: (void*)(uintptr_t)count + [_mapTable setObject: (void *)(uintptr_t)count forKey: object]; else [_mapTable removeObjectForKey: object]; } - (void)makeImmutable { } @end