@@ -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,24 +15,24 @@ #include "config.h" #include -#import "OFMutableAdjacentArray.h" -#import "OFAdjacentArray.h" +#import "OFConcreteMutableArray.h" +#import "OFConcreteArray.h" #import "OFArray+Private.h" #import "OFData.h" #import "OFEnumerationMutationException.h" #import "OFInvalidArgumentException.h" #import "OFOutOfRangeException.h" -@implementation OFMutableAdjacentArray +@implementation OFConcreteMutableArray + (void)initialize { - if (self == [OFMutableAdjacentArray class]) - [self inheritMethodsFromClass: [OFAdjacentArray class]]; + if (self == [OFConcreteMutableArray class]) + [self inheritMethodsFromClass: [OFConcreteArray class]]; } - (instancetype)initWithCapacity: (size_t)capacity { self = [super init]; @@ -376,8 +376,8 @@ } #endif - (void)makeImmutable { - object_setClass(self, [OFAdjacentArray class]); + object_setClass(self, [OFConcreteArray class]); } @end