From a291267ca72e112a33693e72c5a269d104ebd900 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 1 Nov 2009 01:12:00 +0000 Subject: Faster loop approach. --- Source/SPDatabaseData.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m index d10b9107..895700e2 100644 --- a/Source/SPDatabaseData.m +++ b/Source/SPDatabaseData.m @@ -360,10 +360,8 @@ const CHAR_SETS charsets[] = NSMutableArray *engines = [self _getDatabaseDataForQuery:@"SHOW STORAGE ENGINES"]; // We only want to include engines that are supported - for (int i = 0; i < [engines count]; i++) - { - NSDictionary *engine = [engines objectAtIndex:i]; - + for (NSDictionary *engine in engines) + { if (([[engine objectForKey:@"Support"] isEqualToString:@"DEFAULT"]) || ([[engine objectForKey:@"Support"] isEqualToString:@"YES"])) { -- cgit v1.2.3