Fix error when reading newlines
Fix error 'operation priorities' identified by static analysis from http://www.viva64.com/en/b/0251/ '!=' operator's priority is higher than that of the '=' Change-Id: I2668171acb506992e3a15b113682ac04ba309532 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
5b4c0da9d0
commit
2a9201c1e6
@ -1752,7 +1752,7 @@ bool QConfFileSettingsPrivate::readIniLine(const QByteArray &data, int &dataPos,
|
||||
|
||||
if (i == lineStart + 1) {
|
||||
char ch;
|
||||
while (i < dataLen && ((ch = data.at(i) != '\n') && ch != '\r'))
|
||||
while (i < dataLen && (((ch = data.at(i)) != '\n') && ch != '\r'))
|
||||
++i;
|
||||
lineStart = i;
|
||||
} else if (!inQuotes) {
|
||||
|
Loading…
Reference in New Issue
Block a user