diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-10-07 22:38:47 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2018-10-13 16:32:31 +0000 |
commit | 147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 (patch) | |
tree | 5fd2f6af06da917ca1a7fd5b6fea56fe4c269337 /src/plugins/debugger/sourceutils.cpp | |
parent | d0d6f9949114c55aa728f99cb321fa0779efcf31 (diff) | |
download | qt-creator-147a3c27c4db8d5cb5c2cedba9a51c1bb216d307.tar.gz |
Debugger: Strip QLatin1* where possible
Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/sourceutils.cpp')
-rw-r--r-- | src/plugins/debugger/sourceutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceutils.cpp b/src/plugins/debugger/sourceutils.cpp index dc42a69296..b1c254038a 100644 --- a/src/plugins/debugger/sourceutils.cpp +++ b/src/plugins/debugger/sourceutils.cpp @@ -263,7 +263,7 @@ QString cppExpressionAt(TextEditorWidget *editorWidget, int pos, if (expr.isEmpty()) { tc.setPosition(pos); const QChar ch = editorWidget->characterAt(pos); - if (ch.isLetterOrNumber() || ch == QLatin1Char('_')) + if (ch.isLetterOrNumber() || ch == '_') tc.movePosition(QTextCursor::EndOfWord); // Fetch the expression's code. @@ -324,7 +324,7 @@ ContextData getLocationContext(TextDocument *document, int lineNumber) QString fileName = document->property(Constants::DISASSEMBLER_SOURCE_FILE).toString(); if (!fileName.isEmpty()) { // Possibly one of the "27 [1] foo = x" lines - int pos = line.indexOf(QLatin1Char('[')); + int pos = line.indexOf('['); int ln = line.leftRef(pos - 1).toInt(); if (ln > 0) { data.type = LocationByFile; |