diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-17 17:57:17 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-17 17:58:00 +0200 |
commit | 82b80b9e3946083ec0a9f2cb8415b32503790136 (patch) | |
tree | f0bad94a1185408c70e7f8a039855d15edf7996d /src/libs/cplusplus/ExpressionUnderCursor.cpp | |
parent | 245dfe51c622a77b69ee9f39e2b30d03443f3117 (diff) | |
download | qt-creator-82b80b9e3946083ec0a9f2cb8415b32503790136.tar.gz |
Automagically insert matching characters.
Diffstat (limited to 'src/libs/cplusplus/ExpressionUnderCursor.cpp')
-rw-r--r-- | src/libs/cplusplus/ExpressionUnderCursor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libs/cplusplus/ExpressionUnderCursor.cpp b/src/libs/cplusplus/ExpressionUnderCursor.cpp index 622b420048..106e3040b1 100644 --- a/src/libs/cplusplus/ExpressionUnderCursor.cpp +++ b/src/libs/cplusplus/ExpressionUnderCursor.cpp @@ -153,10 +153,8 @@ QString ExpressionUnderCursor::operator()(const QTextCursor &cursor) return scanner.text(i, initialSize); } -int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) +int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const { - QString text; - BackwardsScanner scanner(cursor); int index = scanner.startToken(); |