ObjFW  Check-in [1042afedd9]

Overview
Comment:OFString+PathAdditions: Fix typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1042afedd9de19f64392b92c527bec35190d718d3e7222380b73377e0663a67d
User & Date: js on 2020-11-02 22:13:24
Other Links: manifest | tags
Context
2020-11-04
23:11
OFData: Fix memory leak check-in: 4d5b2623c8 user: js tags: trunk
2020-11-03
01:07
configure: Add flags for Wii U check-in: 5b8a7e4d0d user: js tags: wii-u
2020-11-02
22:13
OFString+PathAdditions: Fix typo check-in: 1042afedd9 user: js tags: trunk
01:11
OFSystemInfo: Do not use sysctl to get CPU vendor check-in: e73d0702d0 user: js tags: trunk
Changes

Modified src/platform/libfat/OFString+PathAdditions.m from [a4536de6b4] to [67bd48bd8c].

157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
	pos = [fileName rangeOfString: @"."
			      options: OF_STRING_SEARCH_BACKWARDS].location;
	if (pos == OF_NOT_FOUND || pos == 0) {
		objc_autoreleasePoolPop(pool);
		return @"";
	}

	ret = [fileName substringWithFromIndex: pos + 1];

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

- (OFString *)stringByDeletingLastPathComponent







|







157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
	pos = [fileName rangeOfString: @"."
			      options: OF_STRING_SEARCH_BACKWARDS].location;
	if (pos == OF_NOT_FOUND || pos == 0) {
		objc_autoreleasePoolPop(pool);
		return @"";
	}

	ret = [fileName substringFromIndex: pos + 1];

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

- (OFString *)stringByDeletingLastPathComponent