From: Jean-Marc Lasgouttes Date: Sat, 14 Sep 2024 18:36:04 +0000 (+0200) Subject: Pass sigPtr object as const reference too X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8c76a9fc3da7ab200f36e501ca67fc0421f0517e;p=lyx.git Pass sigPtr object as const reference too Spotted by Coverity scan. --- 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: ///