[Analyzers][CPP]Changes to fix warning 26493 on src/modules/ (L to M) (#23486)

starting with letter L to Letter M
This commit is contained in:
sosssego
2023-02-08 11:01:35 +00:00
committed by GitHub
parent 0c5b528c54
commit b13f74c089
7 changed files with 172 additions and 61 deletions

View File

@@ -349,7 +349,7 @@ public:
DWORD windowPid;
GetWindowThreadProcessId(nextWindow, &windowPid);
if (windowPid == (DWORD)closePid)
if (windowPid == static_cast<DWORD>(closePid))
::PostMessage(nextWindow, WM_CLOSE, 0, 0);
return true;
@@ -401,7 +401,7 @@ void Microsoft_Launcher::parse_hotkey(PowerToysSettings::PowerToyValues& setting
try
{
auto jsonPropertiesObject = settingsObject.GetNamedObject(JSON_KEY_PROPERTIES);
m_use_centralized_keyboard_hook = (bool)jsonPropertiesObject.GetNamedBoolean(JSON_KEY_USE_CENTRALIZED_KEYBOARD_HOOK);
m_use_centralized_keyboard_hook =jsonPropertiesObject.GetNamedBoolean(JSON_KEY_USE_CENTRALIZED_KEYBOARD_HOOK);
}
catch (...)
{