mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
Pass SocketCallback object as const reference
Spotted by Coverity scan.
This commit is contained in:
parent
52157c9318
commit
980f91d12e
@ -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)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user