aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-06 23:14:21 +0100
committerMax <post@wickenrode.com>2015-01-06 23:15:49 +0100
commit56949ac737a3838f3276d0e558fd0dac7632aae5 (patch)
tree1c24380ce3b6bbc1ddb0a21f7bc9acb948258c6c /Source/SPExportController.m
parent4ffde6a4867ae005405f586947cf943097c212c1 (diff)
downloadsequelpro-56949ac737a3838f3276d0e558fd0dac7632aae5.tar.gz
sequelpro-56949ac737a3838f3276d0e558fd0dac7632aae5.tar.bz2
sequelpro-56949ac737a3838f3276d0e558fd0dac7632aae5.zip
Change some code formatting
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m71
1 files changed, 38 insertions, 33 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index 752e8521..f650bab9 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -431,45 +431,50 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled";
[tables removeAllObjects];
// For all modes, retrieve table and view names
- NSArray *tablesAndViews = [tablesListInstance allTableAndViewNames];
-
- for (id itemName in tablesAndViews) {
- [tables addObject:[NSMutableArray arrayWithObjects:
- itemName,
- @YES,
- @YES,
- @YES,
- [NSNumber numberWithInt:SPTableTypeTable],
- nil]];
- }
+ {
+ NSArray *tablesAndViews = [tablesListInstance allTableAndViewNames];
+
+ for (id itemName in tablesAndViews) {
+ [tables addObject:[NSMutableArray arrayWithObjects:
+ itemName,
+ @YES,
+ @YES,
+ @YES,
+ [NSNumber numberWithInt:SPTableTypeTable],
+ nil]];
+ }
+ } // The purpose of this extra { } is to limit visibility and thus catch copy&paste errors
// For SQL only, add procedures and functions
if (exportType == SPSQLExport) {
- NSArray *procedures = [tablesListInstance allProcedureNames];
-
- for (id procName in procedures)
+ // Procedures
{
- [tables addObject:[NSMutableArray arrayWithObjects:
- procName,
- @YES,
- @YES,
- @YES,
- [NSNumber numberWithInt:SPTableTypeProc],
- nil]];
+ NSArray *procedures = [tablesListInstance allProcedureNames];
+
+ for (id procName in procedures) {
+ [tables addObject:[NSMutableArray arrayWithObjects:
+ procName,
+ @YES,
+ @YES,
+ @YES,
+ [NSNumber numberWithInt:SPTableTypeProc],
+ nil]];
+ }
}
-
- NSArray *functions = [tablesListInstance allFunctionNames];
-
- for (id funcName in functions)
+ // Functions
{
- [tables addObject:[NSMutableArray arrayWithObjects:
- funcName,
- @YES,
- @YES,
- @YES,
- [NSNumber numberWithInt:SPTableTypeFunc],
- nil]];
- }
+ NSArray *functions = [tablesListInstance allFunctionNames];
+
+ for (id funcName in functions) {
+ [tables addObject:[NSMutableArray arrayWithObjects:
+ funcName,
+ @YES,
+ @YES,
+ @YES,
+ [NSNumber numberWithInt:SPTableTypeFunc],
+ nil]];
+ }
+ }
}
if (sender) {