use "init" instead of "initWithString: @"""
This commit is contained in:
parent
a9d4c96cd4
commit
baeca52eed
|
@ -279,10 +279,10 @@ static int static_lastid = 0;
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSMutableString * progressString = [[NSMutableString alloc] initWithString: @""],
|
NSMutableString * progressString = [[NSMutableString alloc] init],
|
||||||
* remainingTimeString = [[NSMutableString alloc] initWithString: @""],
|
* remainingTimeString = [[NSMutableString alloc] init],
|
||||||
* statusString = [[NSMutableString alloc] initWithString: @""],
|
* statusString = [[NSMutableString alloc] init],
|
||||||
* shortStatusString = [[NSMutableString alloc] initWithString: @""];
|
* shortStatusString = [[NSMutableString alloc] init];
|
||||||
|
|
||||||
if (![self allDownloaded])
|
if (![self allDownloaded])
|
||||||
[progressString appendFormat: NSLocalizedString(@"%@ of %@ (%.2f%%)", "Torrent -> progress string"),
|
[progressString appendFormat: NSLocalizedString(@"%@ of %@ (%.2f%%)", "Torrent -> progress string"),
|
||||||
|
@ -466,7 +466,7 @@ static int static_lastid = 0;
|
||||||
fProgressString = progressString;
|
fProgressString = progressString;
|
||||||
|
|
||||||
[fStatusString release];
|
[fStatusString release];
|
||||||
fStatusString = statusString;
|
fStatusString = statusString;
|
||||||
|
|
||||||
[fShortStatusString release];
|
[fShortStatusString release];
|
||||||
fShortStatusString = shortStatusString;
|
fShortStatusString = shortStatusString;
|
||||||
|
|
Loading…
Reference in New Issue