summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-12 10:19:00 +0200
committerDamiano Galassi <[email protected]>2019-08-12 10:19:00 +0200
commitc5a4d181ebedbdee2bdfefeffa28128d0b9c95c1 (patch)
tree635e3d036b7065987f29d38489838ceb6cdd11eb /macosx/HBSubtitles.m
parent76d08e5d4bb6287de03519cf43cc298d2d896a7a (diff)
MacGui: enable and fix more warnings. Review nullability annotations.
Diffstat (limited to 'macosx/HBSubtitles.m')
-rw-r--r--macosx/HBSubtitles.m6
1 files changed, 3 insertions, 3 deletions
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<NSString *, id> *)sourceTrackAtIndex:(NSUInteger)idx;
+- (NSDictionary<NSString *, id> *)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];