Fix warnings reported by ICC in qdoc
doc.cpp(3292): error #68: integer conversion resulted in a change of sign generator.cpp(363): error #68: integer conversion resulted in a change of sign Change-Id: Ie714ffcb4098debc701ce3fb6fa444154ac02ae5 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
parent
f2e8a81227
commit
a496b5dc38
@ -3291,7 +3291,7 @@ QString Doc::canonicalTitle(const QString &title)
|
||||
for (int i = 0; i != title.size(); ++i) {
|
||||
uint c = title.at(i).unicode();
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
c -= 'A' - 'a';
|
||||
c += 'a' - 'A';
|
||||
bool alnum = (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9');
|
||||
if (alnum) {
|
||||
result += QLatin1Char(c);
|
||||
|
@ -360,7 +360,7 @@ QString Generator::fileBase(const Node *node) const
|
||||
QChar c = base.at(i);
|
||||
uint u = c.unicode();
|
||||
if (u >= 'A' && u <= 'Z')
|
||||
u -= 'A' - 'a';
|
||||
u += 'a' - 'A';
|
||||
if ((u >= 'a' && u <= 'z') || (u >= '0' && u <= '9')) {
|
||||
res += QLatin1Char(u);
|
||||
begun = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user