mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Fix code_style.sh to include *.mm files after switch to Obj-C++ (#2846)
This commit is contained in:
@@ -122,9 +122,8 @@
|
||||
NSInteger globalUseSpeedLimit = torrent.usesGlobalSpeedLimit ? NSControlStateValueOn : NSControlStateValueOff;
|
||||
|
||||
while ((torrent = [enumerator nextObject]) &&
|
||||
(uploadUseSpeedLimit != NSControlStateValueMixed || uploadSpeedLimit != INVALID ||
|
||||
downloadUseSpeedLimit != NSControlStateValueMixed || downloadSpeedLimit != INVALID ||
|
||||
globalUseSpeedLimit != NSControlStateValueMixed))
|
||||
(uploadUseSpeedLimit != NSControlStateValueMixed || uploadSpeedLimit != INVALID || downloadUseSpeedLimit != NSControlStateValueMixed ||
|
||||
downloadSpeedLimit != INVALID || globalUseSpeedLimit != NSControlStateValueMixed))
|
||||
{
|
||||
if (uploadUseSpeedLimit != NSControlStateValueMixed &&
|
||||
uploadUseSpeedLimit != ([torrent usesSpeedLimit:YES] ? NSControlStateValueOn : NSControlStateValueOff))
|
||||
@@ -195,8 +194,7 @@
|
||||
|
||||
NSInteger checkRatio = torrent.ratioSetting;
|
||||
NSInteger checkIdle = torrent.idleSetting;
|
||||
NSInteger removeWhenFinishSeeding = torrent.removeWhenFinishSeeding ? NSControlStateValueOn
|
||||
: NSControlStateValueOff;
|
||||
NSInteger removeWhenFinishSeeding = torrent.removeWhenFinishSeeding ? NSControlStateValueOn : NSControlStateValueOff;
|
||||
CGFloat ratioLimit = torrent.ratioLimit;
|
||||
NSUInteger idleLimit = torrent.idleLimitMinutes;
|
||||
|
||||
@@ -224,8 +222,7 @@
|
||||
}
|
||||
|
||||
if (removeWhenFinishSeeding != NSControlStateValueMixed &&
|
||||
removeWhenFinishSeeding != (torrent.removeWhenFinishSeeding ? NSControlStateValueOn
|
||||
: NSControlStateValueOff))
|
||||
removeWhenFinishSeeding != (torrent.removeWhenFinishSeeding ? NSControlStateValueOn : NSControlStateValueOff))
|
||||
{
|
||||
removeWhenFinishSeeding = NSControlStateValueMixed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user