summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@nokia.com>2012-03-14 15:24:07 +0100
committerRobert Löhning <robert.loehning@nokia.com>2012-03-15 12:05:07 +0100
commitb2760bf2efed28cf2c2c93fbf1528ddfa473acf5 (patch)
treeefeff903aea3be8a8642b460fa8973800d550997
parentbe4adfac23a8ca73fa7290a529cad50a08b1a5d5 (diff)
downloadqt-creator-b2760bf2efed28cf2c2c93fbf1528ddfa473acf5.tar.gz
Replaced one-char-strings
Change-Id: I873606e5a5cd92c0987bc89bd2bfa085a384b797 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
-rw-r--r--src/libs/qmljsdebugclient/qmlprofilereventlist.cpp2
-rw-r--r--src/plugins/valgrind/callgrind/callgrinddatamodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp b/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp
index 1178a22400..a4079669ce 100644
--- a/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp
+++ b/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp
@@ -1680,7 +1680,7 @@ void QmlProfilerEventList::load()
// find v8events' children and parents
foreach (int parentIndex, childrenIndexes.keys()) {
- QStringList childrenStrings = childrenIndexes.value(parentIndex).split(",");
+ QStringList childrenStrings = childrenIndexes.value(parentIndex).split(QLatin1Char(','));
QStringList childrenTimesStrings = childrenTimes.value(parentIndex).split(", ");
QStringList parentTimesStrings = parentTimes.value(parentIndex).split(", ");
for (int ndx = 0; ndx < childrenStrings.count(); ndx++) {
diff --git a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp
index 7f93b77767..bde533c272 100644
--- a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp
+++ b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp
@@ -212,7 +212,7 @@ QModelIndex DataModel::indexForObject(const Function *function) const
static QString noWrap(const QString &str)
{
QString escapedStr = str;
- return escapedStr.replace("-", "&#8209;");
+ return escapedStr.replace(QLatin1Char('-'), "&#8209;");
}
QVariant DataModel::data(const QModelIndex &index, int role) const