diff options
author | Damiano Galassi <[email protected]> | 2019-08-12 10:19:00 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-12 10:19:00 +0200 |
commit | c5a4d181ebedbdee2bdfefeffa28128d0b9c95c1 (patch) | |
tree | 635e3d036b7065987f29d38489838ceb6cdd11eb /macosx/HBPlayerHUDController.m | |
parent | 76d08e5d4bb6287de03519cf43cc298d2d896a7a (diff) |
MacGui: enable and fix more warnings. Review nullability annotations.
Diffstat (limited to 'macosx/HBPlayerHUDController.m')
-rw-r--r-- | macosx/HBPlayerHUDController.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx/HBPlayerHUDController.m b/macosx/HBPlayerHUDController.m index 473b5ce0a..5fa0e36ce 100644 --- a/macosx/HBPlayerHUDController.m +++ b/macosx/HBPlayerHUDController.m @@ -9,15 +9,15 @@ @interface HBPlayerHUDController () -@property (weak) IBOutlet NSButton *playButton; -@property (weak) IBOutlet NSSlider *slider; +@property (nonatomic, weak) IBOutlet NSButton *playButton; +@property (nonatomic, weak) IBOutlet NSSlider *slider; -@property (weak) IBOutlet NSSlider *volumeSlider; +@property (nonatomic, weak) IBOutlet NSSlider *volumeSlider; -@property (weak) IBOutlet NSTextField *currentTimeLabel; -@property (weak) IBOutlet NSTextField *remaingTimeLabel; +@property (nonatomic, weak) IBOutlet NSTextField *currentTimeLabel; +@property (nonatomic, weak) IBOutlet NSTextField *remaingTimeLabel; -@property (weak) IBOutlet NSPopUpButton *tracksSelection; +@property (nonatomic, weak) IBOutlet NSPopUpButton *tracksSelection; @property (nonatomic, readwrite) id rateObserver; @property (nonatomic, readwrite) id periodicObserver; @@ -338,7 +338,7 @@ return YES; } -- (BOOL)HB_scrollWheel:(NSEvent *)theEvent; +- (BOOL)HB_scrollWheel:(NSEvent *)theEvent { if (theEvent.deltaY < 0) { @@ -466,7 +466,7 @@ static NSTouchBarItemIdentifier HBTouchBarTimeSlider = @"fr.handbrake.timeSlider slider.maxValue = duration; } -- (NSString *)_timeToString:(NSTimeInterval)timeInSeconds negative:(BOOL)negative; +- (NSString *)_timeToString:(NSTimeInterval)timeInSeconds negative:(BOOL)negative { UInt16 seconds = (UInt16)fmod(timeInSeconds, 60.0); UInt16 minutes = (UInt16)fmod(timeInSeconds / 60.0, 60.0); |