summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/cppcodemarker.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-06-01 12:11:09 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-08-22 11:53:19 (GMT)
commitd62bb74d329b6ee5f6c52ac26e11bfe9a27f56a0 (patch)
tree78e95d80ae9f526e6e90fd3f3e6fb8079fd89953 /tools/qdoc3/cppcodemarker.cpp
parent89c6b83ee22ceb009c26c826cc4158d179312434 (diff)
downloadQt-d62bb74d329b6ee5f6c52ac26e11bfe9a27f56a0.zip
Qt-d62bb74d329b6ee5f6c52ac26e11bfe9a27f56a0.tar.gz
Qt-d62bb74d329b6ee5f6c52ac26e11bfe9a27f56a0.tar.bz2
Added an additional check to workaround an issue on Windows.
Reviewed-by: David Boddie Original-patch-by: Friedemann Kleint (cherry picked from commit 8b1654ec6a892e84c1654c9196e80461ee6e92fa)
Diffstat (limited to 'tools/qdoc3/cppcodemarker.cpp')
-rw-r--r--tools/qdoc3/cppcodemarker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qdoc3/cppcodemarker.cpp b/tools/qdoc3/cppcodemarker.cpp
index 9591801..2067716 100644
--- a/tools/qdoc3/cppcodemarker.cpp
+++ b/tools/qdoc3/cppcodemarker.cpp
@@ -953,7 +953,7 @@ QString CppCodeMarker::addMarkUp(const QString &in,
ident += ch;
finish = i;
readChar();
- } while (isalnum(ch) || ch == '_');
+ } while (ch >= 0 && isalnum(ch) || ch == '_');
if (classRegExp.exactMatch(ident)) {
tag = QLatin1String("type");