forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user