Merge pull request #46 from Shatur95/fix-implicit-conversion-warning

Fix implicit conversion warning
This commit is contained in:
Felix Barz
2020-10-15 08:33:24 +02:00
committed by GitHub
+1 -1
View File
@@ -71,7 +71,7 @@ quint32 QHotkeyPrivateWin::nativeKeycode(Qt::Key keycode, bool &ok)
{ {
ok = true; ok = true;
if(keycode <= 0xFFFF) {//Try to obtain the key from it's "character" if(keycode <= 0xFFFF) {//Try to obtain the key from it's "character"
const SHORT vKey = VkKeyScanW(keycode); const SHORT vKey = VkKeyScanW(static_cast<WCHAR>(keycode));
if(vKey > -1) if(vKey > -1)
return LOBYTE(vKey); return LOBYTE(vKey);
} }