ObjFW  Check-in [8d9ab7ea41]

Overview
Comment:Remove +[OFObject new]

While it allows for some laziness when using ARC, it only creates
inconsistency because there are no +[newWith*] methods.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d9ab7ea41795285f6745dccb7ed026296f0cdbf134507e7125dfd45954b61ce
User & Date: js on 2022-12-04 09:01:11
Other Links: manifest | tags
Context
2022-12-04
10:57
Clean up and fix objfw.spec check-in: 06823673f3 user: js tags: trunk
09:01
Remove +[OFObject new] check-in: 8d9ab7ea41 user: js tags: trunk
2022-11-27
09:22
OFSystemInfo: Detect 3DNow! support check-in: 29565be707 user: js tags: trunk
2018-02-25
04:21
OFObject: Bring +[new] back check-in: d6bf2b12dd user: js tags: trunk
Changes

Modified src/OFObject.h from [698abcee0b] to [4fee091a9d].

655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
 * @return The allocated object
 * @throw OFAllocFailedException There was not enough memory to allocate the
 *				 object
 * @throw OFInitializationFailedException The instance could not be constructed
 */
+ (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;








<
<
<
<
<
<
<







655
656
657
658
659
660
661







662
663
664
665
666
667
668
 * @return The allocated object
 * @throw OFAllocFailedException There was not enough memory to allocate the
 *				 object
 * @throw OFInitializationFailedException The instance could not be constructed
 */
+ (instancetype)alloc;








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

Modified src/OFObject.m from [eefa1e2165] to [5066d79b28].

433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
}

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

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

+ (Class)class
{
	return self;
}

+ (OFString *)className
{







<
<
<
<
<







433
434
435
436
437
438
439





440
441
442
443
444
445
446
}

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






+ (Class)class
{
	return self;
}

+ (OFString *)className
{