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");
m_command = command;

View File

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