From b2760bf2efed28cf2c2c93fbf1528ddfa473acf5 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Wed, 14 Mar 2012 15:24:07 +0100 Subject: [PATCH] Replaced one-char-strings Change-Id: I873606e5a5cd92c0987bc89bd2bfa085a384b797 Reviewed-by: Eike Ziller --- src/libs/qmljsdebugclient/qmlprofilereventlist.cpp | 2 +- src/plugins/valgrind/callgrind/callgrinddatamodel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp b/src/libs/qmljsdebugclient/qmlprofilereventlist.cpp index 1178a22400d..a4079669cef 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 7f93b77767d..bde533c272c 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("-", "‑"); + return escapedStr.replace(QLatin1Char('-'), "‑"); } QVariant DataModel::data(const QModelIndex &index, int role) const