Keymap: remove iterator change inside for loop, no functional change
Pointed by clang. Change-Id: I3aaad5b1e03385358ccb729251fa31d35108f389 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2392 Reviewed-by: John Scipione <jscipione@gmail.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
parent
1e3d4cf78c
commit
f7db27344f
@ -420,7 +420,7 @@ BKeymap::GetChars(uint32 keyCode, uint32 modifiers, uint8 activeDeadKey,
|
||||
|
||||
// if dead key, we search for our current offset char in the dead key
|
||||
// offset table string comparison is needed
|
||||
for (int32 i = 0; i < 32; i++) {
|
||||
for (int32 i = 0; i < 32; i += 2) {
|
||||
if (strncmp(&fChars[offset + 1], &fChars[deadKey[i] + 1], *numBytes)
|
||||
== 0) {
|
||||
*numBytes = fChars[deadKey[i + 1]];
|
||||
@ -441,7 +441,6 @@ BKeymap::GetChars(uint32 keyCode, uint32 modifiers, uint8 activeDeadKey,
|
||||
}
|
||||
return;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
// if not found we return the current char mapped
|
||||
|
Loading…
Reference in New Issue
Block a user