summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-09-07 16:28:30 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-09-07 16:28:30 (GMT)
commitc22daf60d6b2360271f1ed50510749b2ae401c7b (patch)
tree77870095a801f72e67aee6c7b3d22360638e6c47 /tools
parentbb3c309cf99e043b4de43feaa8c2a801f7853d22 (diff)
parentf0c4a037f9ebd184dc25571fa591f89dba943105 (diff)
downloadQt-c22daf60d6b2360271f1ed50510749b2ae401c7b.zip
Qt-c22daf60d6b2360271f1ed50510749b2ae401c7b.tar.gz
Qt-c22daf60d6b2360271f1ed50510749b2ae401c7b.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-staging into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-staging: Fix assert error on Windows with a negative char. Doc: Fixed the example of an encoded URL in the class description. Added an additional check to workaround an issue on Windows.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/cppcodemarker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qdoc3/cppcodemarker.cpp b/tools/qdoc3/cppcodemarker.cpp
index 2067716..9af7b9e 100644
--- a/tools/qdoc3/cppcodemarker.cpp
+++ b/tools/qdoc3/cppcodemarker.cpp
@@ -947,13 +947,13 @@ QString CppCodeMarker::addMarkUp(const QString &in,
QString tag;
bool target = false;
- if (isalpha(ch) || ch == '_') {
+ if (isalpha((unsigned char) ch) || ch == '_') {
QString ident;
do {
ident += ch;
finish = i;
readChar();
- } while (ch >= 0 && isalnum(ch) || ch == '_');
+ } while (isalnum((unsigned char) ch) || ch == '_');
if (classRegExp.exactMatch(ident)) {
tag = QLatin1String("type");
@@ -970,11 +970,11 @@ QString CppCodeMarker::addMarkUp(const QString &in,
tag = QLatin1String("func");
target = true;
}
- } else if (isdigit(ch)) {
+ } else if (isdigit((unsigned char) ch)) {
do {
finish = i;
readChar();
- } while (isalnum(ch) || ch == '.');
+ } while (isalnum((unsigned char) ch) || ch == '.');
tag = QLatin1String("number");
} else {
switch (ch) {