QWindowsKeyMapper: remove dead code
As an array of automatic storage duration, 'keyLayout' can never be nullptr, so remove the respective check. Change-Id: I2fb2db8311de55b41a1f9aef7c35341949e38e5a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
parent
fb21212f1e
commit
cab891dc50
@ -679,7 +679,7 @@ void QWindowsKeyMapper::updatePossibleKeyCodes(unsigned char *kbdBuffer, quint32
|
|||||||
|
|
||||||
bool QWindowsKeyMapper::isADeadKey(unsigned int vk_key, unsigned int modifiers)
|
bool QWindowsKeyMapper::isADeadKey(unsigned int vk_key, unsigned int modifiers)
|
||||||
{
|
{
|
||||||
if (keyLayout && (vk_key < 256) && keyLayout[vk_key]) {
|
if ((vk_key < 256) && keyLayout[vk_key]) {
|
||||||
for (register size_t i = 0; i < NumMods; ++i) {
|
for (register size_t i = 0; i < NumMods; ++i) {
|
||||||
if (uint(ModsTbl[i]) == modifiers)
|
if (uint(ModsTbl[i]) == modifiers)
|
||||||
return bool(keyLayout[vk_key]->deadkeys & 1<<i);
|
return bool(keyLayout[vk_key]->deadkeys & 1<<i);
|
||||||
|
Loading…
Reference in New Issue
Block a user