ObjFW  Check-in [9e998270e4]

Overview
Comment:OF{Pair,Triple}: Fix -[mutableCopy]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9e998270e41a037e0ac28b75d5749a0b4e4a46b120a085684b9ce93403922a7a
User & Date: js on 2017-09-25 23:23:30
Other Links: manifest | tags
Context
2017-09-25
23:25
OFMethodSignature: Fix a possible divide by zero check-in: 17461b9a5d user: js tags: trunk
23:23
OF{Pair,Triple}: Fix -[mutableCopy] check-in: 9e998270e4 user: js tags: trunk
23:15
ObjFW.xcodeproj: Use ./autogen.sh check-in: f8f4c733b8 user: js tags: trunk
Changes

Modified src/OFPair.m from [88cab493bc] to [a5961f13a9].

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
- copy
{
	return [self retain];
}

- mutableCopy
{
	return [OFMutablePair pairWithFirstObject: _firstObject
				     secondObject: _secondObject];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<<%@, %@>>",
					   _firstObject, _secondObject];
}
@end







|
|








96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
- copy
{
	return [self retain];
}

- mutableCopy
{
	return [[OFMutablePair alloc] initWithFirstObject: _firstObject
					     secondObject: _secondObject];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<<%@, %@>>",
					   _firstObject, _secondObject];
}
@end

Modified src/OFTriple.m from [76e6072d35] to [c60f2166d4].

110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
- copy
{
	return [self retain];
}

- mutableCopy
{
	return [OFMutableTriple tripleWithFirstObject: _firstObject
					 secondObject: _secondObject
					  thirdObject: _thirdObject];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<<%@, %@, %@>>",
					   _firstObject, _secondObject,
					   _thirdObject];
}
@end







|
|
|









110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
- copy
{
	return [self retain];
}

- mutableCopy
{
	return [[OFMutableTriple alloc] initWithFirstObject: _firstObject
					       secondObject: _secondObject
						thirdObject: _thirdObject];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<<%@, %@, %@>>",
					   _firstObject, _secondObject,
					   _thirdObject];
}
@end