mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Replace post-increment with pre-increment
And post-decrement with pre-decrement.
This commit is contained in:
parent
40330c4606
commit
5ddbf9bba9
16 changed files with 58 additions and 58 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue