ObjFW  Diff

Differences From Artifact [c4342eeb27]:

  • File src/OFMutableTriple.m — part of check-in [9d802a786d] at 2025-01-01 12:58:18 on branch trunk — Update copyright (user: js size: 1411) [more...]

To Artifact [af2352f447]:

  • File src/OFMutableTriple.m — part of check-in [b0a3da90ad] at 2025-04-13 23:01:17 on branch trunk — Continue migrating to the ARC functions for RR (user: js size: 1435) [more...]

23
24
25
26
27
28
29
30
31


32
33
34
35
36
37
38


39
40
41
42
43
44
45


46
47
48
49
50
51
52
23
24
25
26
27
28
29


30
31
32
33
34
35
36


37
38
39
40
41
42
43


44
45
46
47
48
49
50
51
52







-
-
+
+





-
-
+
+





-
-
+
+








@implementation OFMutableTriple
@dynamic firstObject, secondObject, thirdObject;

- (void)setFirstObject: (id)firstObject
{
	id old = _firstObject;
	_firstObject = [firstObject retain];
	[old release];
	_firstObject = objc_retain(firstObject);
	objc_release(old);
}

- (void)setSecondObject: (id)secondObject
{
	id old = _secondObject;
	_secondObject = [secondObject retain];
	[old release];
	_secondObject = objc_retain(secondObject);
	objc_release(old);
}

- (void)setThirdObject: (id)thirdObject
{
	id old = _thirdObject;
	_thirdObject = [thirdObject retain];
	[old release];
	_thirdObject = objc_retain(thirdObject);
	objc_release(old);
}

- (id)copy
{
	OFMutableTriple *copy = [self mutableCopy];

	[copy makeImmutable];