diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-06-07 16:19:12 +1000 | 
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-06-07 16:19:12 +1000 | 
| commit | 74977b1699cdf34bf8146b65a6daf7c48b288ee5 (patch) | |
| tree | b82c0221fb64d91e2482ad9a84fc7f70d9b56c0d | |
| parent | 597f4c7293137bf4f229ae880f5cc235c500747a (diff) | |
| download | scintilla-mirror-74977b1699cdf34bf8146b65a6daf7c48b288ee5.tar.gz | |
Using instancetype for constructors.
| -rw-r--r-- | cocoa/InfoBar.mm | 2 | ||||
| -rw-r--r-- | cocoa/ScintillaView.mm | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 5d6bdb176..6004e15cc 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -80,7 +80,7 @@  @implementation InfoBar -- (id) initWithFrame: (NSRect) frame +- (instancetype) initWithFrame: (NSRect) frame  {    self = [super initWithFrame: frame];    if (self) 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) | 
