aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-01-04 23:19:16 +0000
committerrowanbeentje <rowan@beent.je>2012-01-04 23:19:16 +0000
commitd3807017ca66ba64a7d1b0a8566a4d80f55c7cbc (patch)
treef7713d50ad5eb1c0e72a9c8c0f23f1fc25426b8d
parent38c17c0eddfb312ab341ab93d5b71ba90e9db1cc (diff)
downloadsequelpro-d3807017ca66ba64a7d1b0a8566a4d80f55c7cbc.tar.gz
sequelpro-d3807017ca66ba64a7d1b0a8566a4d80f55c7cbc.tar.bz2
sequelpro-d3807017ca66ba64a7d1b0a8566a4d80f55c7cbc.zip
- Fix compilation errors reported by pornelski in Issue #1253
-rw-r--r--Source/SPTextViewAdditions.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index b2a2354b..7012e4fa 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -553,7 +553,7 @@
currentLineRange = [[self string] lineRangeForRange:NSMakeRange([self selectedRange].location, 0)];
if(selfIsQueryEditor) {
- currentQueryRange = [[self delegate] currentQueryRange];
+ currentQueryRange = [(SPCustomQuery *)[self delegate] currentQueryRange];
} else {
currentQueryRange = currentLineRange;
}
@@ -617,8 +617,8 @@
}
}
- if(selfIsQueryEditor && [[self delegate] currentQueryRange].length)
- [env setObject:[[self string] substringWithRange:[[self delegate] currentQueryRange]] forKey:SPBundleShellVariableCurrentQuery];
+ if(selfIsQueryEditor && [(SPCustomQuery *)[self delegate] currentQueryRange].length)
+ [env setObject:[[self string] substringWithRange:[(SPCustomQuery *)[self delegate] currentQueryRange]] forKey:SPBundleShellVariableCurrentQuery];
if(currentSelectionRange.length)
[env setObject:[[self string] substringWithRange:currentSelectionRange] forKey:SPBundleShellVariableSelectedText];