mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +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:
|
public:
|
||||||
/// connect a connection notification from the LyXServerSocket
|
/// 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)
|
: QSocketNotifier(fd, QSocketNotifier::Read, parent), func_(func)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user