Replace post-increment with pre-increment

And post-decrement with pre-decrement.
This commit is contained in:
Chocobo1
2018-05-31 01:06:28 +08:00
parent 40330c4606
commit 5ddbf9bba9
16 changed files with 58 additions and 58 deletions

View File

@@ -172,7 +172,7 @@ bool Utils::String::slowEquals(const QByteArray &a, const QByteArray &b)
int lengthB = b.length();
int diff = lengthA ^ lengthB;
for (int i = 0; (i < lengthA) && (i < lengthB); i++)
for (int i = 0; (i < lengthA) && (i < lengthB); ++i)
diff |= a[i] ^ b[i];
return (diff == 0);