adium/adium

799391dbde28
Parents e5f7898181b6
Children 2eff88ce692f
"Using 'stringWithString:' with a literal is redundant"
--- a/Plugins/Bonjour/libezv/Classes/EKEzvIncomingFileTransfer.m Sun Mar 18 13:42:17 2012 -0400
+++ b/Plugins/Bonjour/libezv/Classes/EKEzvIncomingFileTransfer.m Sun Mar 18 13:45:58 2012 -0400
@@ -289,7 +289,7 @@
/* This should be easy. We have a url and a location so let's download things to a location! */
NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:downloadURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
- NSString *value = [NSString stringWithString:@"AppleSingle"];
+ NSString *value = @"AppleSingle";
[theRequest addValue:value forHTTPHeaderField:@"Accept-Encoding"];
[theRequest setHTTPShouldHandleCookies:NO];
--- a/Source/AIInterfaceController.m Sun Mar 18 13:42:17 2012 -0400
+++ b/Source/AIInterfaceController.m Sun Mar 18 13:45:58 2012 -0400
@@ -1138,9 +1138,9 @@
if (windowKey < 10) {
windowKeyString = [NSString stringWithFormat:@"%ld", (windowKey)];
} else if (windowKey == 10) {
- windowKeyString = [NSString stringWithString:@"0"];
+ windowKeyString = @"0";
} else {
- windowKeyString = [NSString stringWithString:@""];
+ windowKeyString = @"";
}
item = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:chat.displayName
--- a/Source/AIXtrasManager.m Sun Mar 18 13:42:17 2012 -0400
+++ b/Source/AIXtrasManager.m Sun Mar 18 13:45:58 2012 -0400
@@ -441,7 +441,7 @@
else
displayString = [NSString stringWithString:name];
} else {
- displayString = [NSString stringWithString:@""];
+ displayString = @"";
}
return displayString;
--- a/Source/CBContactCountingDisplayPlugin.m Sun Mar 18 13:42:17 2012 -0400
+++ b/Source/CBContactCountingDisplayPlugin.m Sun Mar 18 13:45:58 2012 -0400
@@ -164,7 +164,7 @@
} else if (inGroup != adium.contactController.offlineGroup) {
countString = [NSString stringWithFormat:@"%lu", onlineObjects];
} else {
- countString = [NSString stringWithString:@""];
+ countString = @"";
}
[inGroup setValue:countString