From 8c76a9fc3da7ab200f36e501ca67fc0421f0517e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 14 Sep 2024 20:36:04 +0200 Subject: [PATCH] Pass sigPtr object as const reference too Spotted by Coverity scan. --- src/support/ForkedCalls.cpp | 2 +- src/support/ForkedCalls.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp index b9462153e0..3b505c64ee 100644 --- a/src/support/ForkedCalls.cpp +++ b/src/support/ForkedCalls.cpp @@ -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; diff --git a/src/support/ForkedCalls.h b/src/support/ForkedCalls.h index ea16ced7d7..e64e53c6df 100644 --- a/src/support/ForkedCalls.h +++ b/src/support/ForkedCalls.h @@ -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: ///