ObjFW  Check-in [cc7dbe6a83]

Overview
Comment:OFNotification: Make init unavailable
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cc7dbe6a83aaa4850e26365a60625168c6a1e678f39f1d3e92df0cf6ff5c056b
User & Date: js on 2022-04-25 19:37:02
Other Links: manifest | tags
Context
2022-04-25
20:09
Revert "OFOpenItemFailedException: Remove path" check-in: 1185c1cd3d user: js tags: trunk
19:37
OFNotification: Make init unavailable check-in: cc7dbe6a83 user: js tags: trunk
19:22
More reordering for consistency check-in: 6f9a9b44d5 user: js tags: trunk
Changes

Modified src/OFNotification.h from [e3ac678499] to [de7bff6c2a].

104
105
106
107
108
109
110


111
112
113
 * @param userInfo Additional information for the notification
 * @return An initialized OFNotification
 */
- (instancetype)initWithName: (OFNotificationName)name
		      object: (nullable id)object
		    userInfo: (nullable OFDictionary *)userInfo
    OF_DESIGNATED_INITIALIZER;


@end

OF_ASSUME_NONNULL_END







>
>



104
105
106
107
108
109
110
111
112
113
114
115
 * @param userInfo Additional information for the notification
 * @return An initialized OFNotification
 */
- (instancetype)initWithName: (OFNotificationName)name
		      object: (nullable id)object
		    userInfo: (nullable OFDictionary *)userInfo
    OF_DESIGNATED_INITIALIZER;

- (instancetype)init OF_UNAVAILABLE;
@end

OF_ASSUME_NONNULL_END

Modified src/OFNotification.m from [c262c407bd] to [d51e2a4110].

55
56
57
58
59
60
61





62
63
64
65
66
67
68
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}






- (void)dealloc
{
	[_name release];
	[_object release];
	[_userInfo release];








>
>
>
>
>







55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (instancetype)init
{
	OF_INVALID_INIT_METHOD
}

- (void)dealloc
{
	[_name release];
	[_object release];
	[_userInfo release];