ObjFW  Diff

Differences From Artifact [0ce80cb81c]:

To Artifact [90e49f1e77]:


2043
2044
2045
2046
2047
2048
2049
2050
2051




2052
2053
2054


2055
2056
2057
2058




2059
2060
2061
2062
2063
2064
2065
2043
2044
2045
2046
2047
2048
2049


2050
2051
2052
2053
2054


2055
2056
2057



2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068







-
-
+
+
+
+

-
-
+
+

-
-
-
+
+
+
+







	[new makeImmutable];

	return new;
}

- (OFString *)stringByAppendingPathComponent: (OFString *)component
{
	void *pool = objc_autoreleasePoolPush();
	OFString *ret;
	if ([self hasSuffix: OF_PATH_DELIMITER_STRING])
		return [self stringByAppendingString: component];
	else {
		OFMutableString *ret = [[self mutableCopy] autorelease];

	ret = [OFString pathWithComponents:
	    [OFArray arrayWithObjects: self, component, nil]];
		[ret appendString: OF_PATH_DELIMITER_STRING];
		[ret appendString: component];

	[ret retain];
	objc_autoreleasePoolPop(pool);
	return [ret autorelease];
		[ret makeImmutable];

		return ret;
	}
}

- (OFString *)stringByPrependingString: (OFString *)string
{
	OFMutableString *new = [[string mutableCopy] autorelease];

	[new appendString: self];