ObjFW  Check-in [ed94121c31]

Overview
Comment:OFAddressTranslationFailedException: Fix typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ed94121c318be2b92aae4d573c5dd88084361c20a84ce861c7b2e460487fba82
User & Date: js on 2017-05-13 16:34:35
Other Links: manifest | tags
Context
2017-05-13
16:56
Fix compilation with GCC check-in: 4df6ab6bca user: js tags: trunk
16:34
OFAddressTranslationFailedException: Fix typo check-in: ed94121c31 user: js tags: trunk
16:29
Also use nonatomic for non-object properties check-in: f663d40cbd user: js tags: trunk
Changes

Modified src/exceptions/OFAddressTranslationFailedException.m from [b3820ad5f4] to [2a82ec8711].

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
+ (void)initialize
{
	if (self != [OFAddressTranslationFailedException class])
		return;

	if (!of_mutex_new(&mutex))
		@throw [OFInitializationFailedException
		    exceptionWithClass: class];
}
#endif

+ (instancetype)exceptionWithHost: (OFString *)host
{
	return [[[self alloc] initWithHost: host] autorelease];
}







|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
+ (void)initialize
{
	if (self != [OFAddressTranslationFailedException class])
		return;

	if (!of_mutex_new(&mutex))
		@throw [OFInitializationFailedException
		    exceptionWithClass: [self class]];
}
#endif

+ (instancetype)exceptionWithHost: (OFString *)host
{
	return [[[self alloc] initWithHost: host] autorelease];
}