summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
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;