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

src/frontends/qt/GuiApplication.cpp

index 1c9edc0c9c658c60bec45ba84db9d1c461bb151b..fb974f7e1ddbf32f3ccf4237081ed2b2b21dd907 100644 (file)
@@ -744,7 +744,7 @@ class SocketNotifier : public QSocketNotifier
 {
 public:
        /// connect a connection notification from the LyXServerSocket
-       SocketNotifier(QObject * parent, int fd, Application::SocketCallback func)
+       SocketNotifier(QObject * parent, int fd, Application::SocketCallback const & func)
                : QSocketNotifier(fd, QSocketNotifier::Read, parent), func_(func)
        {}