Canonical type conversion
Avoid C-style casts when possible. Change-Id: I623d7bc62bd0e48a5e0493c892d6ad9b11b0ca0c Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
101581484b
commit
2b83e78f6e
@ -321,7 +321,7 @@ static inline bool isTextFile(const QByteArray &data)
|
||||
const char *p = data.constData();
|
||||
const char *e = p + qMin(128, data.size());
|
||||
for ( ; p < e; ++p) {
|
||||
if ((unsigned char)(*p) < 32 && *p != 9 && *p !=10 && *p != 13)
|
||||
if (static_cast<unsigned char>(*p) < 32 && *p != 9 && *p !=10 && *p != 13)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user