mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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:
@@ -67,7 +67,7 @@
|
||||
NSString * fRPCPassword;
|
||||
}
|
||||
|
||||
- (id) initWithHandle: (tr_session *) handle;
|
||||
- (instancetype) initWithHandle: (tr_session *) handle;
|
||||
|
||||
- (void) setAutoUpdateToBeta: (id) sender;
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
- (void) updatePortStatus;
|
||||
- (void) portCheckerDidFinishProbing: (PortChecker *) portChecker;
|
||||
|
||||
- (NSArray *) sounds;
|
||||
@property (nonatomic, readonly) NSArray *sounds;
|
||||
- (void) setSound: (id) sender;
|
||||
|
||||
- (void) setUTP: (id) sender;
|
||||
|
||||
Reference in New Issue
Block a user