aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseData.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-01 01:12:00 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-01 01:12:00 +0000
commita291267ca72e112a33693e72c5a269d104ebd900 (patch)
treea89d5f0ed9dd912e07f73218f04fa048964d8377 /Source/SPDatabaseData.m
parent9fa1aca5bf60469daf8b86b4f31af7ecfdb7893f (diff)
downloadsequelpro-a291267ca72e112a33693e72c5a269d104ebd900.tar.gz
sequelpro-a291267ca72e112a33693e72c5a269d104ebd900.tar.bz2
sequelpro-a291267ca72e112a33693e72c5a269d104ebd900.zip
Faster loop approach.
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r--Source/SPDatabaseData.m6
1 files 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"]))
{