summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/qdocdatabase.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-10-13 09:00:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-10-13 11:11:50 +0000
commit798128856c83f2542af166de0083ed46bcd70704 (patch)
tree02cfe4722a9734070c98c84bf5a51cbbd02c7290 /src/tools/qdoc/qdocdatabase.cpp
parent72d0c62d1420ddc69accdb6f7e70fe0e72bd507e (diff)
qdoc: Fix single-character string literals.
Use character literals where applicable. Change-Id: I7011ae6ee55107b4788cc434e0dc3618c4213799 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/qdocdatabase.cpp')
-rw-r--r--src/tools/qdoc/qdocdatabase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp
index acd11ff20b5..28373bd3b52 100644
--- a/src/tools/qdoc/qdocdatabase.cpp
+++ b/src/tools/qdoc/qdocdatabase.cpp
@@ -340,10 +340,10 @@ void QDocForest::printLinkCounts(const QString& project)
while (i != m.end()) {
QString line = " " + i.value();
if (i.value() != module)
- depends += " " + i.value();
+ depends += QLatin1Char(' ') + i.value();
int pad = 30 - line.length();
for (int k=0; k<pad; ++k)
- line += " ";
+ line += QLatin1Char(' ');
line += "%1";
Location::null.report(line.arg(-(i.key())));
++i;
@@ -370,7 +370,7 @@ QString QDocForest::getLinkCounts(QStringList& strings, QVector<int>& counts)
if (i.value() != module) {
counts.append(-(i.key()));
strings.append(i.value());
- depends += " " + i.value();
+ depends += QLatin1Char(' ') + i.value();
}
++i;
}
@@ -1674,7 +1674,7 @@ const Node* QDocDatabase::findNodeForAtom(const Atom* a, const Node* relative, Q
const Node* node = 0;
Atom* atom = const_cast<Atom*>(a);
- QStringList targetPath = atom->string().split("#");
+ QStringList targetPath = atom->string().split(QLatin1Char('#'));
QString first = targetPath.first().trimmed();
if (Generator::debugging())
qDebug() << " first:" << first;