]> git.lyx.org Git - lyx.git/commitdiff
Pass sigPtr object as const reference too
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 14 Sep 2024 18:36:04 +0000 (20:36 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 14 Sep 2024 18:36:04 +0000 (20:36 +0200)
Spotted by Coverity scan.

src/support/ForkedCalls.cpp
src/support/ForkedCalls.h

index b9462153e04afb1e879efc3eae4397ee4800a4b4..3b505c64eecc3bff3d1957fb05c517db5d6b3700 100644 (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;
index ea16ced7d75d338ac94a9aedfc6239975898fe53..e64e53c6df0239e805fab7afedd0beca9cc25e2a 100644 (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:
        ///