Differences From Artifact [3aa81f3781]:
- File src/exceptions/OFOutOfMemoryException.m — part of check-in [cc5923d6bb] at 2017-06-04 23:41:38 on branch trunk — Add designated initializer to all exceptions (user: js, size: 1278) [annotate] [blame] [check-ins using]
To Artifact [d40c089e61]:
- File
src/exceptions/OFOutOfMemoryException.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 1306) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
24 25 26 27 28 29 30 |
+ (instancetype)exceptionWithRequestedSize: (size_t)requestedSize
{
return [[[self alloc]
initWithRequestedSize: requestedSize] autorelease];
}
| | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
+ (instancetype)exceptionWithRequestedSize: (size_t)requestedSize
{
return [[[self alloc]
initWithRequestedSize: requestedSize] autorelease];
}
- (instancetype)init
{
return [self initWithRequestedSize: 0];
}
- (instancetype)initWithRequestedSize: (size_t)requestedSize
{
self = [super init];
_requestedSize = requestedSize;
return self;
}
|
| ︙ | ︙ |