From: Jean-Marc Lasgouttes Date: Sat, 14 Sep 2024 18:19:34 +0000 (+0200) Subject: Pass SocketCallback object as const reference X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=980f91d12ee9f47ad944ec0f0befb9c638511bdc;p=lyx.git Pass SocketCallback object as const reference Spotted by Coverity scan. --- diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 1c9edc0c9c..fb974f7e1d 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -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) {}