aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-13 21:57:07 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-13 21:57:07 +0000
commit52eb2680673fca634013fa45ef16f4173a33c880 (patch)
treee325fef71235e0f6f717d2b337787ea114608c32 /Source/SPTextView.m
parent81dca137319ed18b1299f77b580ed62b1ecf0fc0 (diff)
downloadsequelpro-52eb2680673fca634013fa45ef16f4173a33c880.tar.gz
sequelpro-52eb2680673fca634013fa45ef16f4173a33c880.tar.bz2
sequelpro-52eb2680673fca634013fa45ef16f4173a33c880.zip
Fix more warnings.
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index 769d4be8..d009d03c 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -74,6 +74,8 @@ YY_BUFFER_STATE yy_scan_string (const char *);
#pragma mark -
+NSInteger _alphabeticSort(id string1, id string2, void *reverse);
+
// some helper functions for handling rectangles and points
// needed in roundedBezierPathAroundRange:
static inline CGFloat SPRectTop(NSRect rectangle) { return rectangle.origin.y; }
@@ -102,7 +104,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS
/**
* Sort function (mainly used to sort the words in the textView)
*/
-NSInteger alphabeticSort(id string1, id string2, void *reverse)
+NSInteger _alphabeticSort(id string1, id string2, void *reverse)
{
return [string1 localizedCaseInsensitiveCompare:string2];
}
@@ -284,7 +286,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
NSInteger reverseSort = NO;
- for(id w in [[uniqueArray allObjects] sortedArrayUsingFunction:alphabeticSort context:&reverseSort])
+ for(id w in [[uniqueArray allObjects] sortedArrayUsingFunction:_alphabeticSort context:&reverseSort])
[possibleCompletions addObject:[NSDictionary dictionaryWithObjectsAndKeys:w, @"display", @"dummy-small", @"image", nil]];
}