[Analyzers] Fix for C26495

This commit is contained in:
Jeremy Sinclair 2023-09-20 09:49:03 -04:00
parent 5867b12d67
commit a626272bde
4 changed files with 9 additions and 9 deletions

View File

@ -49,11 +49,11 @@ private:
//contains the non localized key of the powertoy
std::wstring app_key;
HANDLE m_hProcess;
HANDLE m_hProcess{};
HANDLE m_hShowEvent;
HANDLE m_hShowEvent{};
HANDLE m_hShowAdminEvent;
HANDLE m_hShowAdminEvent{};
bool is_process_running()
{

View File

@ -93,7 +93,7 @@ private:
std::mutex tasklist_cv_mutex;
std::condition_variable tasklist_cv;
HTHUMBNAIL thumbnail;
HTHUMBNAIL thumbnail{};
HWND active_window = nullptr;
bool active_window_snappable = false;
D2DOverlaySVG landscape, portrait;

View File

@ -44,9 +44,9 @@ class Awake : public PowertoyModuleIface
private:
bool m_enabled = false;
HANDLE send_telemetry_event;
HANDLE m_hInvokeEvent;
PROCESS_INFORMATION p_info;
HANDLE send_telemetry_event{};
HANDLE m_hInvokeEvent{};
PROCESS_INFORMATION p_info{};
bool is_process_running()
{

View File

@ -46,8 +46,8 @@ class PowerAccent : public PowertoyModuleIface
private:
bool m_enabled = false;
HANDLE m_hInvokeEvent;
PROCESS_INFORMATION p_info;
HANDLE m_hInvokeEvent{};
PROCESS_INFORMATION p_info{};
bool is_process_running()
{