From 74977b1699cdf34bf8146b65a6daf7c48b288ee5 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Wed, 7 Jun 2017 16:19:12 +1000 Subject: Using instancetype for constructors. --- cocoa/ScintillaView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index ad88f2097..abc7346f8 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -66,7 +66,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) @synthesize marginWidth, owner; -- (id)initWithScrollView:(NSScrollView *)aScrollView +- (instancetype)initWithScrollView:(NSScrollView *)aScrollView { self = [super initWithScrollView:aScrollView orientation:NSVerticalRuler]; if (self != nil) @@ -1485,7 +1485,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context /** * Initialization of the view. Used to setup a few other things we need. */ -- (id) initWithFrame: (NSRect) frame +- (instancetype) initWithFrame: (NSRect) frame { self = [super initWithFrame:frame]; if (self) -- cgit v1.2.3