diff --git a/macosx/Controller.mm b/macosx/Controller.mm index aa45efc62..e1701dc1d 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -3002,7 +3002,7 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool { //for each torrent, removes the previous piece info if it's not in allTorrents, and keeps track of which torrents we already found in allTorrents void (^removePreviousFinishedPieces)(id, NSUInteger, BOOL*) = ^(Torrent* torrent, NSUInteger /*idx*/, BOOL* /*stop*/) { - //we used to keep track of which torrents we already found in allTorrents, but it wasn't safe fo concurrent enumeration + //we used to keep track of which torrents we already found in allTorrents, but it wasn't safe for concurrent enumeration if (![allTorrents containsObject:torrent]) { torrent.previousFinishedPieces = nil; @@ -4598,7 +4598,7 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool return YES; } - //only enable some items if it is in a context menu or the window is useable + //only enable some items if it is in a context menu or the window is usable BOOL canUseTable = self.fWindow.keyWindow || menuItem.menu.supermenu != NSApp.mainMenu; //enable open items diff --git a/macosx/InfoTrackersViewController.mm b/macosx/InfoTrackersViewController.mm index ccbc66d14..289b865b5 100644 --- a/macosx/InfoTrackersViewController.mm +++ b/macosx/InfoTrackersViewController.mm @@ -256,7 +256,7 @@ typedef NS_ENUM(NSInteger, TrackerSegmentTag) { [self.fTrackerTable reloadData]; [self.fTrackerTable deselectAll:self]; - [NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //incase sort by tracker + [NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //in case sort by tracker } - (void)addRemoveTracker:(id)sender @@ -463,7 +463,7 @@ typedef NS_ENUM(NSInteger, TrackerSegmentTag) { [self.fTrackerTable endUpdates]; - [NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //incase sort by tracker + [NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //in case sort by tracker } @end diff --git a/macosx/Torrent.mm b/macosx/Torrent.mm index 1e5c2f12d..3ca439920 100644 --- a/macosx/Torrent.mm +++ b/macosx/Torrent.mm @@ -828,10 +828,10 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error** error) } if (self.fStat->leftUntilDone <= 0) { - // We return smallest amount of time remaining for simpliest compliance with sorting. + // We return smallest amount of time remaining for simplest compliance with sorting. return 0; } - // We return highest amount of time remaining for simpliest compliance with sorting. + // We return highest amount of time remaining for simplest compliance with sorting. return LONG_MAX; }