aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2018-10-07 22:38:47 +0300
committerOrgad Shaneh <[email protected]>2018-10-13 16:32:31 +0000
commit147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 (patch)
tree5fd2f6af06da917ca1a7fd5b6fea56fe4c269337 /src/plugins/debugger/watchhandler.cpp
parentd0d6f9949114c55aa728f99cb321fa0779efcf31 (diff)
Debugger: Strip QLatin1* where possible
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 81ffc9174d5..3826e33a9f2 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -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;