@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -13,19 +13,19 @@ * file. */ #include "config.h" -#import "OFMutableMapTableSet.h" -#import "OFMapTableSet.h" +#import "OFConcreteMutableSet.h" +#import "OFConcreteSet.h" #import "OFMapTable.h" -@implementation OFMutableMapTableSet +@implementation OFConcreteMutableSet + (void)initialize { - if (self == [OFMutableMapTableSet class]) - [self inheritMethodsFromClass: [OFMapTableSet class]]; + if (self == [OFConcreteMutableSet class]) + [self inheritMethodsFromClass: [OFConcreteSet class]]; } - (void)addObject: (id)object { [_mapTable setObject: (void *)1 forKey: object]; @@ -41,8 +41,8 @@ [_mapTable removeAllObjects]; } - (void)makeImmutable { - object_setClass(self, [OFMapTableSet class]); + object_setClass(self, [OFConcreteSet class]); } @end