@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008 - 2009 + * Copyright (c) 2008 - 2010 * Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the @@ -225,10 +225,12 @@ size_t i, count = [array count]; IMP append; if (count == 0) return @""; + if (count == 1) + return [objs[0] retain]; str = [OFMutableString string]; append = [str methodForSelector: @selector(appendString:)]; for (i = 0; i < count - 1; i++) { @@ -321,10 +323,11 @@ [super dealloc]; } @end +/// \cond internal @implementation OFArrayEnumerator - initWithDataArray: (OFDataArray*)array_ mutationsPointer: (unsigned long*)mutations_ptr_; { self = [super init]; @@ -356,5 +359,6 @@ pos = 0; return self; } @end +/// \endcond