Use ARC where possible.

This commit is contained in:
Damiano Galassi committed 2016-08-31 14:42:14 +02:00
1 parent 0bef381148
commit b841840561
13 files changed
+123 -207

No files matched your search

+1 -9
View File
@@ -26,7 +26,6 @@
if ([nodes count] == 1)
[self metadata2:_mMetadata forNode:[nodes objectAtIndex:0]];
}
[xml release];
}
return self;
}
@@ -37,7 +36,7 @@
NSError *err;
NSArray *tag = [node nodesForXPath:query error:&err];
if ([tag count]) {
NSMutableArray *elements = [[[NSMutableArray alloc] initWithCapacity:[tag count]] autorelease];
NSMutableArray *elements = [[NSMutableArray alloc] initWithCapacity:tag.count];
NSEnumerator *tagEnum = [tag objectEnumerator];
NSXMLNode *element;
while ((element = [tagEnum nextObject])) {
@@ -122,11 +121,4 @@
return metadata;
}
- (void)dealloc
{
[_mMetadata release];
[super dealloc];
}
@end