aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2010-02-01 12:43:56 +0100
committerFriedemann Kleint <[email protected]>2010-02-01 12:43:56 +0100
commit2fd8b2d7ffa2ac032bfe3a17efe7d152c4cef14d (patch)
treed09291af8cbedb1b80fd8992429dc46af4766dba /src/plugins/debugger/watchhandler.cpp
parentd2235489e83d70648f26445426a521bb15bab579 (diff)
Fix some code scanning issues.
QString: Use QChar where appropriate.
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 a1d61cabb73..f908e7fbd07 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -152,7 +152,7 @@ void WatchData::setValue(const QString &value0)
}
// avoid duplicated information
- if (value.startsWith("(") && value.contains(") 0x"))
+ if (value.startsWith(QLatin1Char('(')) && value.contains(") 0x"))
value = value.mid(value.lastIndexOf(") 0x") + 2);
// doubles are sometimes displayed as "@0x6141378: 1.2".
@@ -171,8 +171,8 @@ void WatchData::setValue(const QString &value0)
// pointer type information is available in the 'type'
// column. No need to duplicate it here.
- if (value.startsWith("(" + type + ") 0x"))
- value = value.section(" ", -1, -1);
+ if (value.startsWith(QLatin1Char('(') + type + ") 0x"))
+ value = value.section(QLatin1Char(' '), -1, -1);
setValueUnneeded();
}
@@ -796,7 +796,7 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
switch (idx.column()) {
case 0:
if (data.name == QLatin1String("*") && item->parent)
- return QLatin1String("*") + item->parent->name;
+ return QLatin1Char('*') + item->parent->name;
return data.name;
case 1: {
int format = m_handler->m_individualFormats.value(data.iname, -1);