mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-19 06:14:11 +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
|
//contains the non localized key of the powertoy
|
||||||
std::wstring app_key;
|
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()
|
bool is_process_running()
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,7 @@ private:
|
|||||||
std::mutex tasklist_cv_mutex;
|
std::mutex tasklist_cv_mutex;
|
||||||
std::condition_variable tasklist_cv;
|
std::condition_variable tasklist_cv;
|
||||||
|
|
||||||
HTHUMBNAIL thumbnail;
|
HTHUMBNAIL thumbnail{};
|
||||||
HWND active_window = nullptr;
|
HWND active_window = nullptr;
|
||||||
bool active_window_snappable = false;
|
bool active_window_snappable = false;
|
||||||
D2DOverlaySVG landscape, portrait;
|
D2DOverlaySVG landscape, portrait;
|
||||||
|
@ -44,9 +44,9 @@ class Awake : public PowertoyModuleIface
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_enabled = false;
|
bool m_enabled = false;
|
||||||
HANDLE send_telemetry_event;
|
HANDLE send_telemetry_event{};
|
||||||
HANDLE m_hInvokeEvent;
|
HANDLE m_hInvokeEvent{};
|
||||||
PROCESS_INFORMATION p_info;
|
PROCESS_INFORMATION p_info{};
|
||||||
|
|
||||||
bool is_process_running()
|
bool is_process_running()
|
||||||
{
|
{
|
||||||
|
@ -46,8 +46,8 @@ class PowerAccent : public PowertoyModuleIface
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_enabled = false;
|
bool m_enabled = false;
|
||||||
HANDLE m_hInvokeEvent;
|
HANDLE m_hInvokeEvent{};
|
||||||
PROCESS_INFORMATION p_info;
|
PROCESS_INFORMATION p_info{};
|
||||||
|
|
||||||
bool is_process_running()
|
bool is_process_running()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user