]> git.eshelyaron.com Git - emacs.git/commit
Nextstep: Use instancetype explicit return type
authorPhilipp Stephani <phst@google.com>
Sat, 20 May 2017 14:36:24 +0000 (16:36 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 21 May 2017 19:49:09 +0000 (21:49 +0200)
commit84b28ec759ed3d294c2f49353942ae76e0c75532
tree2f562d459878de7c76b03bcb62bf87ca555f0e79
parent08212929ba7052883bd506be320dfaaae5b68970
Nextstep: Use instancetype explicit return type

This removes compiler warnings on macOS and improves type safety.

* nsterm.m (initFrameFromEmacs:):
(menuDown:):
(toolbarClicked:):
(toggleToolbar:):
(setMiniwindowImage:):
(initFrame:window:):
(condemn, reprieve, setPosition:portion:whole:):
(repeatScroll:):
* nsmenu.m (initWithTitle:):
(initWithTitle:frame:):
(initForView:withIdentifier:):
(init, initWithContentRect:styleMask:backing:defer:):
(initFromContents:isQuestion:):
* nsimage.m (allocInitFromFile:):
(initFromXBM:width:height:fg:bg:):
(setXBMColor:):
(initForXPMWithDepth:width:height:): Use instancetype as return
type instead of implicit id.
src/nsimage.m
src/nsmenu.m
src/nsterm.h
src/nsterm.m