mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-18 21:48:12 +08:00
[Analyzers] Fix for C26495
This commit is contained in:
parent
5867b12d67
commit
a626272bde
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user