From 837b7c8801dabaec33c55494047540b6ac6ef22d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 20 May 2019 11:55:44 -0700 Subject: [PATCH] Objective-C seriously didn't notice my mistake :/. --- CyteKit/stringWith.mm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CyteKit/stringWith.mm b/CyteKit/stringWith.mm index b3d0e722..da647dfd 100644 --- a/CyteKit/stringWith.mm +++ b/CyteKit/stringWith.mm @@ -36,23 +36,23 @@ + (NSString *) stringWithFormat:(NSString *)format :(size_t)count :(id *)args { switch (count) { case 0: - return [[[NSString init] initWithFormat:format] autorelease];; + return [[[NSString alloc] initWithFormat:format] autorelease];; case 1: - return [[[NSString init] initWithFormat:format, args[0]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0]] autorelease];; case 2: - return [[[NSString init] initWithFormat:format, args[0], args[1]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1]] autorelease];; case 3: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2]] autorelease];; case 4: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3]] autorelease];; case 5: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4]] autorelease];; case 6: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5]] autorelease];; case 7: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6]] autorelease];; case 8: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]] autorelease];; default: _assert(false); } -- 2.45.2