aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-09-18 16:06:21 +0000
committerrowanbeentje <rowan@beent.je>2010-09-18 16:06:21 +0000
commit50c324b28583355740199c8c22a5c4d8bd63c050 (patch)
tree27799b1a19507295e75dcd0c051b300e98a543d5 /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parentae8935e94513139f2ea0d10cba6757fef14fa86d (diff)
downloadsequelpro-50c324b28583355740199c8c22a5c4d8bd63c050.tar.gz
sequelpro-50c324b28583355740199c8c22a5c4d8bd63c050.tar.bz2
sequelpro-50c324b28583355740199c8c22a5c4d8bd63c050.zip
- Clean up warnings when building with GCC
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 3bdc796a..9cb913f0 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -1612,7 +1612,7 @@ void performThreadedKeepAlive(void *ptr)
* proceed and loop depending on the status, not returning control until either the query has been executed
* and the result can be returned or the connection and document have been closed.
*/
-- (id)queryString:(NSString *) query usingEncoding:(NSStringEncoding) encoding streamingResult:(NSInteger) streamResultType
+- (id)queryString:(NSString *) query usingEncoding:(NSStringEncoding)aStringEncoding streamingResult:(NSInteger) streamResultType
{
MCPResult *theResult = nil;
double queryStartTime, queryExecutionTime;
@@ -1659,7 +1659,7 @@ void performThreadedKeepAlive(void *ptr)
}
// Derive the query string in the correct encoding
- NSData *d = NSStringDataUsingLossyEncoding(query, encoding, 1);
+ NSData *d = NSStringDataUsingLossyEncoding(query, aStringEncoding, 1);
theCQuery = [d bytes];
// Set the length of the current query
theCQueryLength = [d length];
@@ -3091,7 +3091,7 @@ void performThreadedKeepAlive(void *ptr)
* For internal use only. Transforms a NSString to a C type string (ending with \0).
* Lossy conversions are enabled.
*/
-- (const char *)cStringFromString:(NSString *)theString usingEncoding:(NSStringEncoding)encoding
+- (const char *)cStringFromString:(NSString *)theString usingEncoding:(NSStringEncoding)aStringEncoding
{
NSMutableData *theData;
@@ -3099,7 +3099,7 @@ void performThreadedKeepAlive(void *ptr)
return (const char *)NULL;
}
- theData = [NSMutableData dataWithData:[theString dataUsingEncoding:encoding allowLossyConversion:YES]];
+ theData = [NSMutableData dataWithData:[theString dataUsingEncoding:aStringEncoding allowLossyConversion:YES]];
[theData increaseLengthBy:1];
return (const char *)[theData bytes];
@@ -3128,7 +3128,7 @@ void performThreadedKeepAlive(void *ptr)
/**
* Returns a NSString from a C style string.
*/
-- (NSString *)stringWithCString:(const char *)theCString usingEncoding:(NSStringEncoding)encoding
+- (NSString *)stringWithCString:(const char *)theCString usingEncoding:(NSStringEncoding)aStringEncoding
{
NSData *theData;
NSString *theString;
@@ -3136,7 +3136,7 @@ void performThreadedKeepAlive(void *ptr)
if (theCString == NULL) return @"";
theData = [NSData dataWithBytes:theCString length:(strlen(theCString))];
- theString = [[NSString alloc] initWithData:theData encoding:encoding];
+ theString = [[NSString alloc] initWithData:theData encoding:aStringEncoding];
if (theString) {
[theString autorelease];