From 332f6201ce607a6622fadfd3e6426e4571dc035f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 16 Mar 2010 02:04:50 +0000 Subject: - Make a number of changes to attempt to improve disconnection/quit crashes: prevent multiple disconnects, add more checks, cancel current queries, and add a tiny delay to allow mysql cleanup. - Alter MCPStreamingResult to no longer return a retained instance, setting up correct result disposal on autorelease but changing callers to retain as soon as they receive. - Review and change a number of local variables shadowing/shielding other local or global variables. --- Source/CMTextView.m | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/CMTextView.m') diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 6e55ec6b..50099ede 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -968,7 +968,6 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // Indent the currently selected line if the caret is within a single line if ([self selectedRange].length == 0) { - NSRange currentLineRange; // Extract the current line range based on the text caret currentLineRange = [textViewString lineRangeForRange:[self selectedRange]]; @@ -1021,7 +1020,6 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // Undent the currently selected line if the caret is within a single line if ([self selectedRange].length == 0) { - NSRange currentLineRange; // Extract the current line range based on the text caret currentLineRange = [textViewString lineRangeForRange:[self selectedRange]]; -- cgit v1.2.3