adium/adium

Improve the speed of fast enumeration by not using the property, as it -copies these ivars.

This also fixes a crash with ARC.
--- a/Frameworks/Adium Framework/Source/AIChat.m Sat Sep 15 17:32:10 2012 -0400
+++ b/Frameworks/Adium Framework/Source/AIChat.m Tue Sep 18 12:38:50 2012 +0200
@@ -1069,7 +1069,7 @@
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
{
- return [self.containedObjects countByEnumeratingWithState:state objects:stackbuf count:len];
+ return [participatingContacts countByEnumeratingWithState:state objects:stackbuf count:len];
}
- (BOOL) canContainObject:(id)obj
--- a/Frameworks/Adium Framework/Source/AIListGroup.m Sat Sep 15 17:32:10 2012 -0400
+++ b/Frameworks/Adium Framework/Source/AIListGroup.m Tue Sep 18 12:38:50 2012 +0200
@@ -360,7 +360,7 @@
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
{
- return [self.containedObjects countByEnumeratingWithState:state objects:stackbuf count:len];
+ return [_containedObjects countByEnumeratingWithState:state objects:stackbuf count:len];
}
#pragma mark Applescript
--- a/Frameworks/Adium Framework/Source/AIMetaContact.m Sat Sep 15 17:32:10 2012 -0400
+++ b/Frameworks/Adium Framework/Source/AIMetaContact.m Tue Sep 18 12:38:50 2012 +0200
@@ -1038,7 +1038,7 @@
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
{
- return [self.containedObjects countByEnumeratingWithState:state objects:stackbuf count:len];
+ return [_containedObjects countByEnumeratingWithState:state objects:stackbuf count:len];
}
#pragma mark Contained Contact sorting