Pass SocketCallback object as const reference

Spotted by Coverity scan.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-14 20:19:34 +02:00
parent 52157c9318
commit 980f91d12e

View 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)
{}