ObjFW  Check-in [c03aab9c8c]

Overview
Comment:Remove +[OFObject new]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c03aab9c8c803fd087470c3a1b8d0afa53bbadb94f1d510234b2676825b01411
User & Date: js on 2017-11-19 13:14:11
Other Links: manifest | tags
Context
2017-11-19
14:41
Fix compiling as ObjC++ check-in: 487aa4d51b user: js tags: trunk
13:14
Remove +[OFObject new] check-in: c03aab9c8c user: js tags: trunk
12:56
Fix compilation with GCC check-in: 615a9f2eba user: js tags: trunk
Changes

Modified src/OFObject.h from [44d3bd5e78] to [c6967b6935].

477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
 * This method will never return `nil`, instead, it will throw an
 * @ref OFAllocFailedException.
 *
 * @return The allocated object
 */
+ (instancetype)alloc;

/*!
 * @brief Allocates memory for a new instance and calls @ref init on it.
 * @return An allocated and initialized object
 */
+ (instancetype)new;

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








<
<
<
<
<
<







477
478
479
480
481
482
483






484
485
486
487
488
489
490
 * 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;

Modified src/OFObject.m from [e04ae60642] to [22261c0609].

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
{







<
<
<
<
<







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
{