ObjFW  Diff

Differences From Artifact [c9d1c58489]:

To Artifact [01afd72625]:


112
113
114
115
116
117
118


119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

		[pool2 releaseObjects];
	}
	[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.
	 */
	ret->isa = [OFString class];
	return ret;
}

- copy
{
	return [[OFCountedSet alloc] initWithSet: self];
}







>
>


<
<
<
<
<
<







112
113
114
115
116
117
118
119
120
121
122






123
124
125
126
127
128
129

		[pool2 releaseObjects];
	}
	[ret replaceOccurrencesOfString: @"\n"
			     withString: @"\n\t"];
	[ret appendString: @"\n)}"];

	[ret makeImmutable];

	[pool release];







	return ret;
}

- copy
{
	return [[OFCountedSet alloc] initWithSet: self];
}
244
245
246
247
248
249
250




251

		for (i = 0; i < count; i++)
			[self addObject: object];
	}

	[pool release];
}




@end







>
>
>
>

240
241
242
243
244
245
246
247
248
249
250
251

		for (i = 0; i < count; i++)
			[self addObject: object];
	}

	[pool release];
}

- (void)makeImmutable
{
}
@end