summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2020-11-10 12:08:59 +0100
committerDavid Faure <david.faure@kdab.com>2020-11-11 09:37:51 +0100
commit6430d6c52513243504db1de26d415be9a75e7e66 (patch)
treefed903f9e0747b27c833c64079d06c0c4bc5c459 /src/qdoc/cppcodemarker.cpp
parent1a97130f20e787812684a8f9acd76c5feef59346 (diff)
downloadqttools-6430d6c52513243504db1de26d415be9a75e7e66.tar.gz
qttools: compile with explicit QChar(int)
Notice how this caught a bad bug: the code was generating "listitem\001" instead of "listitem1" It seems no unittest covers this, they all pass, still. Change-Id: Ibb22231c9dc3e61d3ea0a84894e451c621d50121 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index a52a42b16..f37d9fe9c 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -447,7 +447,7 @@ QString CppCodeMarker::addMarkUp(const QString &in, const Node * /* relative */,
for (int j = sizeof(keywordTable) / sizeof(QString) - 1; j; --j)
keywords.insert(keywordTable[j]);
}
-#define readChar() ch = (i < code.length()) ? code[i++].cell() : EOF
+#define readChar() ch = QChar((i < code.length()) ? code[i++].cell() : EOF)
QString code = in;
QString out;