From 147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 7 Oct 2018 22:38:47 +0300 Subject: Debugger: Strip QLatin1* where possible Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk --- src/plugins/debugger/sourceutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/debugger/sourceutils.cpp') 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; -- cgit v1.2.1