ObjFW  Check-in [810e9a1f43]

Overview
Comment:-[OFXMLElement setChildren:]: Create mutable copy
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: 810e9a1f43dd2fe8299a54c773c36b01315a6feab283c53541669a7cd8fd1f4c
User & Date: js on 2017-11-04 20:57:34
Other Links: branch diff | manifest | tags
Context
2017-11-04
20:58
OFString_UTF8: Fix BOM handling in no copy init check-in: 1aca64c18e user: js tags: 0.90
20:57
-[OFXMLElement setChildren:]: Create mutable copy check-in: 810e9a1f43 user: js tags: 0.90
20:56
+[OFThread threadDictionary]: Handle nil thread check-in: c6e0123999 user: js tags: 0.90
Changes

Modified src/OFXMLElement.m from [ec0f980efe] to [1630a09e19].

377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
{
	return [[_attributes copy] autorelease];
}

- (void)setChildren: (OFArray *)children
{
	OFArray *old = _children;
	_children = [children copy];
	[old release];
}

- (OFArray *)children
{
	return [[_children copy] autorelease];
}







|







377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
{
	return [[_attributes copy] autorelease];
}

- (void)setChildren: (OFArray *)children
{
	OFArray *old = _children;
	_children = [children mutableCopy];
	[old release];
}

- (OFArray *)children
{
	return [[_children copy] autorelease];
}