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)
committerCasper van Donderen <casper.vandonderen@nokia.com>2011-09-02 10:52:10 (GMT)
commitaae54d0dd60ca7ac5c2b013cb2f1e5365cd9855e (patch)
tree830278b8370c78f0c4ca2c78505056802bc65c3a /tools/qdoc3/cppcodemarker.cpp
parent9c5f08452da280a90de48d0fa3862748cc428df4 (diff)
downloadQt-aae54d0dd60ca7ac5c2b013cb2f1e5365cd9855e.zip
Qt-aae54d0dd60ca7ac5c2b013cb2f1e5365cd9855e.tar.gz
Qt-aae54d0dd60ca7ac5c2b013cb2f1e5365cd9855e.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 75d6094..37c2c3a 100644
--- a/tools/qdoc3/cppcodemarker.cpp
+++ b/tools/qdoc3/cppcodemarker.cpp
@@ -935,7 +935,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");