commit 8c76a9fc3da7ab200f36e501ca67fc0421f0517e
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Sat Sep 14 20:36:04 2024 +0200
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:
///
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs