mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
Modern Objective-C syntax (#509)
* Update enabled complier warnings * Convert to Modern Objective-C syntax using Xcode's tool * Convert to modern objc syntax manually, fix some PR issues * Remove unnecessary parentheses * Use property syntax for all custom properties * Use property syntax for all system properties * Fix erroneously autoreleased values * Revert VDKQueue to old objc syntax Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com> Co-authored-by: Mitch Livingston <livings124@mac.com>
This commit is contained in:
@@ -56,11 +56,11 @@
|
||||
TorrentDeterminationType fGroupValueDetermination;
|
||||
}
|
||||
|
||||
- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path lockDestination: (BOOL) lockDestination
|
||||
- (instancetype) initWithTorrent: (Torrent *) torrent destination: (NSString *) path lockDestination: (BOOL) lockDestination
|
||||
controller: (Controller *) controller torrentFile: (NSString *) torrentFile
|
||||
deleteTorrentCheckEnableInitially: (BOOL) deleteTorrent canToggleDelete: (BOOL) canToggleDelete; //if canToggleDelete is NO, we will also not delete the file regardless of the delete check's state (this is so it can be disabled and checked for a downloaded torrent, where the file's already deleted)
|
||||
|
||||
- (Torrent *) torrent;
|
||||
@property (nonatomic, readonly) Torrent *torrent;
|
||||
|
||||
- (void) setDestination: (id) sender;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user