ObjFW  Check-in [d6bf2b12dd]

Overview
Comment:OFObject: Bring +[new] back
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d6bf2b12dddc9335ce7dd75fdbf9693596f1cd8a8b242fee78da033acdd4a295
User & Date: js on 2018-02-25 04:21:42
Other Links: manifest | tags
Context
2022-12-04
09:01
Remove +[OFObject new] check-in: 8d9ab7ea41 user: js tags: trunk
2018-02-25
04:31
Reintroduce of_char{16,32}_t check-in: 505137f25f user: js tags: trunk
04:21
OFObject: Bring +[new] back check-in: d6bf2b12dd user: js tags: trunk
02:55
OFHTTPRequest: Remove body check-in: 629e8d915a user: js tags: trunk
Changes

Modified src/OFObject.h from [885fe09f8c] to [f9418de3f6].

562
563
564
565
566
567
568







569
570
571
572
573
574
575
 * This method will never return `nil`, instead, it will throw an
 * @ref OFAllocFailedException.
 *
 * @return The allocated object
 */
+ (instancetype)alloc;








/*!
 * @brief Returns the class.
 *
 * @return The class
 */
+ (Class)class;








>
>
>
>
>
>
>







562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
 * This method will never return `nil`, instead, it will throw an
 * @ref OFAllocFailedException.
 *
 * @return The allocated object
 */
+ (instancetype)alloc;

/*!
 * @brief Calls @ref alloc on `self` and then `init` on the returned object.
 *
 * @return An allocated and initialized object
 */
+ (instancetype)new;

/*!
 * @brief Returns the class.
 *
 * @return The class
 */
+ (Class)class;

Modified src/OFObject.m from [cc8b3ee1a4] to [4583da4a4e].

281
282
283
284
285
286
287





288
289
290
291
292
293
294
{
}

+ (instancetype)alloc
{
	return of_alloc_object(self, 0, 0, NULL);
}






+ (Class)class
{
	return self;
}

+ (OFString *)className







>
>
>
>
>







281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
}

+ (instancetype)alloc
{
	return of_alloc_object(self, 0, 0, NULL);
}

+ (instancetype)new
{
	return [[self alloc] init];
}

+ (Class)class
{
	return self;
}

+ (OFString *)className