From c5a4d181ebedbdee2bdfefeffa28128d0b9c95c1 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 12 Aug 2019 10:19:00 +0200 Subject: MacGui: enable and fix more warnings. Review nullability annotations. --- macosx/HBSubtitles.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/HBSubtitles.m') diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m index c31ed233c..485603560 100644 --- a/macosx/HBSubtitles.m +++ b/macosx/HBSubtitles.m @@ -82,7 +82,7 @@ extern NSString *keySubTrackExternalFileURLBookmark; #pragma mark - Data Source -- (NSDictionary *)sourceTrackAtIndex:(NSUInteger)idx; +- (NSDictionary *)sourceTrackAtIndex:(NSUInteger)idx { return self.sourceTracks[idx]; } @@ -101,7 +101,7 @@ extern NSString *keySubTrackExternalFileURLBookmark; #pragma mark - Delegate -- (void)track:(HBSubtitlesTrack *)track didChangeSourceFrom:(NSUInteger)oldSourceIdx; +- (void)track:(HBSubtitlesTrack *)track didChangeSourceFrom:(NSUInteger)oldSourceIdx { // If the source was changed to None, remove the track if (track.sourceTrackIdx == NONE_TRACK_INDEX) @@ -553,7 +553,7 @@ fail: return self.tracks[index]; } -- (void)insertObject:(HBSubtitlesTrack *)track inTracksAtIndex:(NSUInteger)index; +- (void)insertObject:(HBSubtitlesTrack *)track inTracksAtIndex:(NSUInteger)index { [[self.undo prepareWithInvocationTarget:self] removeObjectFromTracksAtIndex:index]; [self.tracks insertObject:track atIndex:index]; -- cgit v1.2.3