summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/ExpressionUnderCursor.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-12-12 21:37:46 +0100
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-05-23 14:23:51 +0200
commit41aa2cb3bdd247898b32941270838ec6348cd755 (patch)
tree36650fa82d6868a6e96e65d2a5501ad87320f306 /src/libs/cplusplus/ExpressionUnderCursor.cpp
parent57ff992961fcf8d0ff479a7038c2e517b5bc31a1 (diff)
downloadqt-creator-41aa2cb3bdd247898b32941270838ec6348cd755.tar.gz
C++: Use Token::utf16chars{Begin,End} where appropriate
...especially in CppTools/CppEditor where the offsets are used with a QString/QTextDocument. Change-Id: Ic6d18fbc01fb9cc899a9bd2d7424cd2edae487f1 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/libs/cplusplus/ExpressionUnderCursor.cpp')
-rw-r--r--src/libs/cplusplus/ExpressionUnderCursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/ExpressionUnderCursor.cpp b/src/libs/cplusplus/ExpressionUnderCursor.cpp
index 93176362be..aed195c240 100644
--- a/src/libs/cplusplus/ExpressionUnderCursor.cpp
+++ b/src/libs/cplusplus/ExpressionUnderCursor.cpp
@@ -266,7 +266,7 @@ int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const
if (tk.is(T_EOF_SYMBOL)) {
break;
} else if (tk.is(T_LPAREN)) {
- return scanner.startPosition() + tk.bytesBegin();
+ return scanner.startPosition() + tk.utf16charsBegin();
} else if (tk.is(T_RPAREN)) {
int matchingBrace = scanner.startOfMatchingBrace(index);