Updates to move towards ARC

This commit is contained in:
Richard Frith-Macdonald 2020-02-08 16:42:17 +00:00
parent 0cd9843f5f
commit 2e07244f8e
15 changed files with 86 additions and 70 deletions

View file

@ -6268,14 +6268,14 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
- (NSString*) description
{
CREATE_AUTORELEASE_POOL(arp);
NSMutableString *m;
NSString *s;
m = [NSMutableString stringWithCapacity: 1000];
ENTER_POOL
NSMutableString *m = [NSMutableString stringWithCapacity: 1000];
[self _descriptionTo: m level: 0];
s = RETAIN(m);
RELEASE(arp);
LEAVE_POOL
return AUTORELEASE(s);
}
@ -7390,7 +7390,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
- (void) encodePart: (GSMimeDocument*)document to: (NSMutableData*)md
{
CREATE_AUTORELEASE_POOL(arp);
ENTER_POOL
NSData *d = nil;
NSEnumerator *enumerator;
NSString *subtype;
@ -7813,7 +7813,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
[md appendData: d];
}
}
RELEASE(arp);
LEAVE_POOL
}
- (NSUInteger) foldAt