Merge pull request #1528 from ejensen/instancetype

[Refactoring] Replace id with instancetype in initializers
This commit is contained in:
appleguy
2016-04-16 20:53:41 -07:00
12 changed files with 32 additions and 32 deletions

View File

@@ -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;