diff options
author | sqlprodev <sqlprodev@northofthree.com> | 2012-03-26 21:03:56 +0000 |
---|---|---|
committer | sqlprodev <sqlprodev@northofthree.com> | 2012-03-26 21:03:56 +0000 |
commit | 0662b102085e03010305f80e7429c214a599b655 (patch) | |
tree | 9151b24abf8c5bb7c1da0709ed4b24c79e8a2e62 /Source/SPTextViewAdditions.m | |
parent | e69f32d519b8eab21c974290e4bf0fc6e1a6ccb5 (diff) | |
download | sequelpro-0662b102085e03010305f80e7429c214a599b655.tar.gz sequelpro-0662b102085e03010305f80e7429c214a599b655.tar.bz2 sequelpro-0662b102085e03010305f80e7429c214a599b655.zip |
silence compiler warning about id return type
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index b2a2354b..97f7138d 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]; |