ObjFW  Check-in [64450cd780]

Overview
Comment:Get rid of one @try-block in OFString.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 64450cd780365c9461f4f1d964fdc53f36b58f8eb7094ee2f4d174d47c6c0c06
User & Date: js on 2009-05-24 10:51:02
Other Links: manifest | tags
Context
2009-05-24
18:04
Always use #include "config.h" instead of #import "config.h". check-in: 94ea6848a8 user: js tags: trunk
10:51
Get rid of one @try-block in OFString. check-in: 64450cd780 user: js tags: trunk
10:49
Only hardlink libobjfw.dll if it exists. check-in: 975dd403fa user: js tags: trunk
Changes

Modified src/OFString.m from [796905757e] to [af05f4b76b].

375
376
377
378
379
380
381
382

383
384
385

386
387
388
389
390
391
392
393
394
395
375
376
377
378
379
380
381

382



383



384
385
386
387
388
389
390







-
+
-
-
-
+
-
-
-







	const char *delim = [delimiter cString];
	size_t delim_len = [delimiter length];
	size_t i, last;

	array = [OFMutableArray array];

	if (delim_len > length) {
		str = [self copy];
		str = [[self copy] autorelease];

		@try {
			[array addObject: str];
		[array addObject: str];
		} @finally {
			[str release];
		}

		[array retain];
		[pool release];

		return array;
	}