[vlc-commits] macOS: Minor code style adjustments for VLCHUD classes

Marvin Scholz git at videolan.org
Wed Jun 21 00:40:16 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Jun 21 00:40:01 2017 +0200| [ba4f08ba9d33428dd832c3f4ee944e1d3c4e67ff] | committer: Marvin Scholz

macOS: Minor code style adjustments for VLCHUD classes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba4f08ba9d33428dd832c3f4ee944e1d3c4e67ff
---

 modules/gui/macosx/VLCHUDButtonCell.m      | 6 +++---
 modules/gui/macosx/VLCHUDCheckboxCell.m    | 4 ++--
 modules/gui/macosx/VLCHUDRadiobuttonCell.m | 4 ++--
 modules/gui/macosx/VLCHUDSliderCell.m      | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/gui/macosx/VLCHUDButtonCell.m b/modules/gui/macosx/VLCHUDButtonCell.m
index 6f28ce444d..6b0eaa6202 100644
--- a/modules/gui/macosx/VLCHUDButtonCell.m
+++ b/modules/gui/macosx/VLCHUDButtonCell.m
@@ -36,7 +36,7 @@
 
 @implementation VLCHUDButtonCell
 
-- (instancetype) initWithCoder:(NSCoder *)coder
+- (instancetype)initWithCoder:(NSCoder *)coder
 {
     self = [super initWithCoder:coder];
     if (self) {
@@ -54,7 +54,7 @@
     return self;
 }
 
-- (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView
+- (void)drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView
 {
     // Set frame to the correct size
     frame.size.height = self.cellSize.height;
@@ -85,7 +85,7 @@
     return [super drawTitle:coloredTitle withFrame:frame inView:controlView];
 }
 
-- (void) drawRoundRectButtonBezelInRect:(NSRect)rect
+- (void)drawRoundRectButtonBezelInRect:(NSRect)rect
 {
     NSBezierPath *path;
     if (self.controlSize == NSMiniControlSize) {
diff --git a/modules/gui/macosx/VLCHUDCheckboxCell.m b/modules/gui/macosx/VLCHUDCheckboxCell.m
index 3907f10590..93df527d3a 100644
--- a/modules/gui/macosx/VLCHUDCheckboxCell.m
+++ b/modules/gui/macosx/VLCHUDCheckboxCell.m
@@ -36,7 +36,7 @@
 
 @implementation VLCHUDCheckboxCell
 
-- (instancetype) initWithCoder:(NSCoder *)coder
+- (instancetype)initWithCoder:(NSCoder *)coder
 {
     self = [super initWithCoder:coder];
     if (self) {
@@ -57,7 +57,7 @@
     return self;
 }
 
-- (void) drawImage:(NSImage *)image withFrame:(NSRect)frame inView:(NSView *)controlView
+- (void)drawImage:(NSImage *)image withFrame:(NSRect)frame inView:(NSView *)controlView
 {
     // Set frame size correctly
     NSRect backgroundFrame = frame;
diff --git a/modules/gui/macosx/VLCHUDRadiobuttonCell.m b/modules/gui/macosx/VLCHUDRadiobuttonCell.m
index 5519fbeedf..e69e69a779 100644
--- a/modules/gui/macosx/VLCHUDRadiobuttonCell.m
+++ b/modules/gui/macosx/VLCHUDRadiobuttonCell.m
@@ -36,7 +36,7 @@
 
 @implementation VLCHUDRadiobuttonCell
 
-- (instancetype) initWithCoder:(NSCoder *)coder
+- (instancetype)initWithCoder:(NSCoder *)coder
 {
     self = [super initWithCoder:coder];
     if (self) {
@@ -51,7 +51,7 @@
     return self;
 }
 
-- (void) drawImage:(NSImage *)image withFrame:(NSRect)frame inView:(NSView *)controlView
+- (void)drawImage:(NSImage *)image withFrame:(NSRect)frame inView:(NSView *)controlView
 {
     // Set text color
     NSMutableAttributedString *colorTitle = [[NSMutableAttributedString alloc] initWithAttributedString:self.attributedTitle];
diff --git a/modules/gui/macosx/VLCHUDSliderCell.m b/modules/gui/macosx/VLCHUDSliderCell.m
index 244c832d3d..751a9d32a5 100644
--- a/modules/gui/macosx/VLCHUDSliderCell.m
+++ b/modules/gui/macosx/VLCHUDSliderCell.m
@@ -66,7 +66,7 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
 
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wpartial-availability"
-- (void) drawKnob:(NSRect)smallRect
+- (void)drawKnob:(NSRect)smallRect
 {
     NSBezierPath *path = [NSBezierPath bezierPath];
     // Inset rect to have enough room for the stroke



More information about the vlc-commits mailing list