mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-18 18:05:21 +00:00
[[blah alloc] init] -> [blah new]
This commit is contained in:
parent
470adec0e6
commit
3bc22a52d2
@ -24,7 +24,7 @@
|
||||
thread_suspend (machThread); // Suspend myself
|
||||
|
||||
if ( allocPool )
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
// [object sel] caused "cannot find method" warnings, so I do it a non-obvious way:
|
||||
objc_msgSend (object, sel);
|
||||
@ -43,7 +43,7 @@ pthreadWrapper (void *arg)
|
||||
struct pthreadArgs *args = arg;
|
||||
|
||||
if ( args -> allocPool )
|
||||
args -> pool = [[NSAutoreleasePool alloc] init];
|
||||
args -> pool = [NSAutoreleasePool new];
|
||||
|
||||
objc_msgSend (*(args->object), *(args->sel));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user