[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/devtools/kdevelop4-extra-plugins/coverage
From: Daniel Calviño Sánchez <danxuliu () gmail ! com>
Date: 2012-12-07 13:17:09
Message-ID: 20121207131709.D7F82AC867 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1327621 by danxuliu:
Fix Krazy2 strings issues.
M +1 -1 covoutputdelegate.cpp
M +1 -1 lcovinfoparser.cpp
M +1 -1 lcovjob.cpp
--- trunk/playground/devtools/kdevelop4-extra-plugins/coverage/covoutputdelegate.cpp #1327620:1327621
@@ -44,7 +44,7 @@
QStyleOptionViewItem opt = option;
opt.palette.setBrush(QPalette::Text, textBrush.brush(option.palette));
QString text = index.data().toString();
- if (text.startsWith("Processing")) {
+ if (text.startsWith(QLatin1String("Processing"))) {
opt.palette.setBrush(QPalette::Text, processBrush.brush(option.palette));
} else if (text.contains("source file is newer than graph file")) {
opt.palette.setBrush(QPalette::Text, warningBrush.brush(option.palette));
--- trunk/playground/devtools/kdevelop4-extra-plugins/coverage/lcovinfoparser.cpp #1327620:1327621
@@ -117,7 +117,7 @@
}*/
break;
} case 'e': {
- if (line.startsWith("end_of_record")) {
+ if (line.startsWith(QLatin1String("end_of_record"))) {
Q_ASSERT(m_current);
m_files << m_current;
emit parsedCoverageData(m_files.last());
--- trunk/playground/devtools/kdevelop4-extra-plugins/coverage/lcovjob.cpp #1327620:1327621
@@ -106,7 +106,7 @@
QStringList args;
//m_tmpPath = QDir::tempPath() + QDir::separator() + "kdevcoverage.tmp";
QString root = m_root.pathOrUrl();
- if (root.endsWith("./")) root.chop(3);
+ if (root.endsWith(QLatin1String("./"))) root.chop(3);
args << "-o"
//<< m_tmpPath
<< "-"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic