diff options
author | stuconnolly <stuart02@gmail.com> | 2012-05-09 15:19:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-05-09 15:19:40 +0000 |
commit | afbd3852fa962b3b4399b83ba33295c7621d04a8 (patch) | |
tree | 85644bdcb5091955483e67e88308e5c535bb6248 /Source/SPXMLExporter.m | |
parent | 9131db394c46f10260fcec1a1df5216b140e2bc2 (diff) | |
download | sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.gz sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.bz2 sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.zip |
Fix more gcc warnings.
Diffstat (limited to 'Source/SPXMLExporter.m')
-rw-r--r-- | Source/SPXMLExporter.m | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/SPXMLExporter.m b/Source/SPXMLExporter.m index 1fc29c6f..36f56081 100644 --- a/Source/SPXMLExporter.m +++ b/Source/SPXMLExporter.m @@ -81,11 +81,12 @@ NSMutableString *xmlItem = [NSMutableString string]; NSUInteger xmlRowCount = 0; - NSUInteger i, totalRows, currentRowIndex, lastProgressValue, currentPoolDataLength; + double lastProgressValue = 0; + NSUInteger i, totalRows, currentRowIndex, currentPoolDataLength; // Check to see if we have at least a table name or data array - if ((![self xmlTableName]) && (![self xmlDataArray]) || - ([[self xmlTableName] length] == 0) && ([[self xmlDataArray] count] == 0) || + if ((![self xmlTableName] && ![self xmlDataArray]) || + ([[self xmlTableName] length] == 0 && [[self xmlDataArray] count] == 0) || (([self xmlFormat] == SPXMLExportMySQLFormat) && ((![self xmlOutputIncludeStructure]) && (![self xmlOutputIncludeContent]))) || (([self xmlFormat] == SPXMLExportPlainFormat) && (![self xmlNULLString]))) { @@ -98,9 +99,7 @@ // Mark the process as running [self setExportProcessIsRunning:YES]; - - lastProgressValue = 0; - + // Make a streaming request for the data if the data array isn't set if ((![self xmlDataArray]) && [self xmlTableName]) { @@ -307,7 +306,7 @@ // Update the progress if (totalRows && (currentRowIndex * ([self exportMaxProgress] / totalRows)) > lastProgressValue) { - NSInteger progress = (currentRowIndex * ([self exportMaxProgress] / totalRows)); + double progress = (currentRowIndex * ([self exportMaxProgress] / totalRows)); [self setExportProgressValue:progress]; |