@@ -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 @@ -15,22 +15,22 @@ #include "config.h" #include -#import "OFMutableMapTableDictionary.h" +#import "OFConcreteMutableDictionary.h" +#import "OFConcreteDictionary.h" #import "OFMapTable.h" -#import "OFMapTableDictionary.h" #import "OFEnumerationMutationException.h" #import "OFOutOfRangeException.h" -@implementation OFMutableMapTableDictionary +@implementation OFConcreteMutableDictionary + (void)initialize { - if (self == [OFMutableMapTableDictionary class]) - [self inheritMethodsFromClass: [OFMapTableDictionary class]]; + if (self == [OFConcreteMutableDictionary class]) + [self inheritMethodsFromClass: [OFConcreteDictionary class]]; } - (void)setObject: (id)object forKey: (id)key { [_mapTable setObject: object forKey: key]; @@ -61,8 +61,8 @@ } #endif - (void)makeImmutable { - object_setClass(self, [OFMapTableDictionary class]); + object_setClass(self, [OFConcreteDictionary class]); } @end