chore: Use default init instead of ctor init Windows watchdog
This commit is contained in:
parent
cd5ba1382d
commit
84194cf5ef
2 changed files with 9 additions and 16 deletions
|
|
@ -26,14 +26,7 @@
|
||||||
const auto kStartDelaySeconds = 1;
|
const auto kStartDelaySeconds = 1;
|
||||||
const auto kOutputBufferSize = 4096;
|
const auto kOutputBufferSize = 4096;
|
||||||
|
|
||||||
MSWindowsWatchdog::MSWindowsWatchdog(bool foreground)
|
MSWindowsWatchdog::MSWindowsWatchdog(bool foreground) : m_foreground(foreground)
|
||||||
: m_thread(nullptr),
|
|
||||||
m_outputWritePipe(nullptr),
|
|
||||||
m_outputReadPipe(nullptr),
|
|
||||||
m_elevateProcess(false),
|
|
||||||
m_startFailures(0),
|
|
||||||
m_fileLogOutputter(nullptr),
|
|
||||||
m_foreground(foreground)
|
|
||||||
{
|
{
|
||||||
initSasFunc();
|
initSasFunc();
|
||||||
initOutputReadPipe();
|
initOutputReadPipe();
|
||||||
|
|
|
||||||
|
|
@ -68,15 +68,15 @@ private:
|
||||||
static std::string processStateToString(ProcessState state);
|
static std::string processStateToString(ProcessState state);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Thread *m_thread;
|
Thread *m_thread = nullptr;
|
||||||
bool m_running;
|
bool m_running = true;
|
||||||
HANDLE m_outputWritePipe;
|
HANDLE m_outputWritePipe = nullptr;
|
||||||
HANDLE m_outputReadPipe;
|
HANDLE m_outputReadPipe = nullptr;
|
||||||
Thread *m_outputThread;
|
Thread *m_outputThread = nullptr;
|
||||||
bool m_elevateProcess;
|
bool m_elevateProcess = false;
|
||||||
MSWindowsSession m_session;
|
MSWindowsSession m_session;
|
||||||
int m_startFailures;
|
int m_startFailures = 0;
|
||||||
FileLogOutputter *m_fileLogOutputter;
|
FileLogOutputter *m_fileLogOutputter = nullptr;
|
||||||
bool m_foreground;
|
bool m_foreground;
|
||||||
std::string m_activeDesktop;
|
std::string m_activeDesktop;
|
||||||
std::unique_ptr<deskflow::platform::MSWindowsProcess> m_process;
|
std::unique_ptr<deskflow::platform::MSWindowsProcess> m_process;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue