Debugger: Strip QLatin1* where possible

Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-10-07 22:38:47 +03:00
committed by Orgad Shaneh
parent d0d6f99491
commit 147a3c27c4
55 changed files with 491 additions and 494 deletions

View File

@@ -652,7 +652,7 @@ static QString reformatCharacter(int code, int size, bool isSigned)
if (code < 0)
out += QString("/%1 ").arg((1ULL << (8*size)) + code).left(2 + 2 * size);
else
out += QString(2 + 2 * size, QLatin1Char(' '));
out += QString(2 + 2 * size, ' ');
} else {
out += QString::number(unsigned(code));
}
@@ -2193,7 +2193,7 @@ void WatchHandler::watchExpression(const QString &exp, const QString &name, bool
saveWatchers();
if (m_model->m_engine->state() == DebuggerNotReady) {
item->setValue(QString(QLatin1Char(' ')));
item->setValue(" ");
item->update();
} else {
m_model->m_engine->updateWatchData(item->iname);
@@ -2216,7 +2216,7 @@ void WatchHandler::updateWatchExpression(WatchItem *item, const QString &newExp)
saveWatchers();
if (m_model->m_engine->state() == DebuggerNotReady) {
item->setValue(QString(QLatin1Char(' ')));
item->setValue(" ");
item->update();
} else {
m_model->m_engine->updateWatchData(item->iname);
@@ -2622,7 +2622,7 @@ QString WatchModel::editorContents(const QModelIndexList &list)
QTextStream ts(&contents);
forAllItems([&ts, this, list](WatchItem *item) {
if (list.isEmpty() || list.contains(indexForItem(item))) {
const QChar tab = QLatin1Char('\t');
const QChar tab = '\t';
const QChar nl = '\n';
ts << QString(item->level(), tab) << item->name << tab << displayValue(item) << tab
<< item->type << nl;