Stage 8 of clang compiler warning patches.

Update WORequest+SOGo.m
This commit is contained in:
Euan Thoms 2015-11-04 06:02:45 +08:00 committed by Francis Lachapelle
parent 9d31023724
commit e4fae417b9

View file

@ -180,14 +180,21 @@
cc = [self clientCapabilities]; cc = [self clientCapabilities];
b = ( b = (
[[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound (
&& [[cc userAgent] rangeOfString: @"Darwin"].location != NSNotFound [[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound
|| ( && [[cc userAgent] rangeOfString: @"Darwin"].location != NSNotFound
[[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound )
|| [[cc userAgent] rangeOfString: @"Mac OS X"].location != NSNotFound ||
) (
&& [[cc userAgent] rangeOfString: @"AddressBook"].location != NSNotFound [[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound
); && [[cc userAgent] rangeOfString: @"AddressBook"].location != NSNotFound
)
||
(
[[cc userAgent] rangeOfString: @"Mac OS X"].location != NSNotFound
&& [[cc userAgent] rangeOfString: @"AddressBook"].location != NSNotFound
)
);
return b; return b;
} }