From 7e8a187b6903d8acf6e1515f74a957edea6abafd Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 26 Dec 2008 15:31:25 +0000 Subject: [PATCH] missed one class for fast enumeration --- macosx/MessageWindowController.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index aebd8e52a..5959ec739 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -259,9 +259,7 @@ NSIndexSet * indexes = [fMessageTable selectedRowIndexes]; NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]]; - NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator]; - NSDictionary * message; - while ((message = [enumerator nextObject])) + for (NSDictionary * message in [fMessages objectsAtIndexes: indexes]) [messageStrings addObject: [self stringForMessage: message]]; [pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType]; @@ -315,9 +313,7 @@ //create the text to output NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]]; - NSEnumerator * enumerator = [sortedMessages objectEnumerator]; - NSDictionary * message; - while ((message = [enumerator nextObject])) + for (NSDictionary * message in sortedMessages) [messageStrings addObject: [self stringForMessage: message]]; NSString * fileString = [[messageStrings componentsJoinedByString: @"\n"] retain];