mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
Using static_cast as suggested by Shatur.
This commit is contained in:
committed by
Hennadii Chernyshchyk
parent
6b1c6f1f4e
commit
94efd5fb61
@@ -235,7 +235,7 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
|
||||
|
||||
default:
|
||||
if(keycode <= 0xFFFF)
|
||||
return (BYTE)keycode;
|
||||
return static_cast<BYTE>(keycode);
|
||||
else {
|
||||
ok = false;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user