Pass sigPtr object as const reference too

Spotted by Coverity scan.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-14 20:36:04 +02:00
parent 980f91d12e
commit 8c76a9fc3d
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ int ForkedCall::startScript(Starttype wait, string const & what)
}
int ForkedCall::startScript(string const & what, sigPtr signal)
int ForkedCall::startScript(string const & what, sigPtr const & signal)
{
command_ = commandPrep(trim(what));
signal_ = signal;

View File

@ -177,7 +177,7 @@ public:
int startScript(Starttype, std::string const & what);
///
int startScript(std::string const & what, sigPtr ptr);
int startScript(std::string const & what, sigPtr const & ptr);
private:
///