ObjFW  Check-in [708c4ea884]

Overview
Comment:Fix incorrect indentation of -[OFArray stringBySerializing].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 708c4ea884e093783f1a37965b35bb44a9f6f25e3bb1cdd090ecf0133378c3da
User & Date: js on 2011-05-08 23:13:00
Other Links: manifest | tags
Context
2011-05-08
23:24
Fix missing retain in -[OFArray initWithObject:arguments:]. check-in: 1e9b75e44d user: js tags: trunk
23:13
Fix incorrect indentation of -[OFArray stringBySerializing]. check-in: 708c4ea884 user: js tags: trunk
22:48
Add an initial description of the serialization format. check-in: 08fcd6d53e user: js tags: trunk
Changes

Modified src/OFArray.m from [a04fd61311] to [7aa29c6164].

455
456
457
458
459
460
461

462
463
464
465
466
467
468
469
470
471

	for (i = 0; i < count - 1; i++) {
		[ret appendString: [cArray[i] stringBySerializing]];
		[ret appendString: @",\n"];

		[pool releaseObjects];
	}

	[ret replaceOccurrencesOfString: @"\n"
			     withString: @"\n\t"];
	[ret appendFormat: @"%@\n]", [cArray[i] stringBySerializing]];

	[pool release];

	/*
	 * Class swizzle the string to be immutable. We declared the return type
	 * to be OFString*, so it can't be modified anyway. But not swizzling it
	 * would create a real copy each time -[copy] is called.







>


|







455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472

	for (i = 0; i < count - 1; i++) {
		[ret appendString: [cArray[i] stringBySerializing]];
		[ret appendString: @",\n"];

		[pool releaseObjects];
	}
	[ret appendString: [cArray[i] stringBySerializing]];
	[ret replaceOccurrencesOfString: @"\n"
			     withString: @"\n\t"];
	[ret appendString: @"\n]"];

	[pool release];

	/*
	 * Class swizzle the string to be immutable. We declared the return type
	 * to be OFString*, so it can't be modified anyway. But not swizzling it
	 * would create a real copy each time -[copy] is called.