mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Merge pull request #1528 from ejensen/instancetype
[Refactoring] Replace id with instancetype in initializers
This commit is contained in:
@@ -39,12 +39,12 @@
|
||||
// TODO: eliminate explicit parameters with a set of keys copied from the node
|
||||
@implementation _ASImageNodeDrawParameters
|
||||
|
||||
- (id)initWithImage:(UIImage *)image
|
||||
bounds:(CGRect)bounds
|
||||
opaque:(BOOL)opaque
|
||||
contentsScale:(CGFloat)contentsScale
|
||||
backgroundColor:(UIColor *)backgroundColor
|
||||
contentMode:(UIViewContentMode)contentMode
|
||||
- (instancetype)initWithImage:(UIImage *)image
|
||||
bounds:(CGRect)bounds
|
||||
opaque:(BOOL)opaque
|
||||
contentsScale:(CGFloat)contentsScale
|
||||
backgroundColor:(UIColor *)backgroundColor
|
||||
contentMode:(UIViewContentMode)contentMode
|
||||
{
|
||||
if (!(self = [self init]))
|
||||
return nil;
|
||||
@@ -86,7 +86,7 @@
|
||||
@synthesize image = _image;
|
||||
@synthesize imageModificationBlock = _imageModificationBlock;
|
||||
|
||||
- (id)init
|
||||
- (instancetype)init
|
||||
{
|
||||
if (!(self = [super init]))
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user