chore: Use string_view for MSWindowsWatchdog::setProcessConfig

This commit is contained in:
Nick Bolton 2025-03-03 12:00:31 +00:00
parent 48e1c43a01
commit 40fefb9369
2 changed files with 2 additions and 2 deletions

View file

@ -269,7 +269,7 @@ void MSWindowsWatchdog::startProcess()
} }
} }
void MSWindowsWatchdog::setProcessConfig(const std::string &command, bool elevate) void MSWindowsWatchdog::setProcessConfig(const std::string_view &command, bool elevate)
{ {
LOG_DEBUG("watchdog process config updated"); LOG_DEBUG("watchdog process config updated");
m_command = command; m_command = command;

View file

@ -37,7 +37,7 @@ public:
~MSWindowsWatchdog() = default; ~MSWindowsWatchdog() = default;
void startAsync(); void startAsync();
void setProcessConfig(const std::string &command, bool elevate); void setProcessConfig(const std::string_view &command, bool elevate);
void stop(); void stop();
bool isProcessRunning(); bool isProcessRunning();
void setFileLogOutputter(FileLogOutputter *outputter); void setFileLogOutputter(FileLogOutputter *outputter);