Use pointer not reference

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8847 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2004-07-23 19:01:48 +00:00
parent 1a9a77b074
commit 835a0d9186
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-07-23 Lars Gullik Bjonnes <larsbj@gullik.net>
* lyxserver.C (startPipe): use this (pointer) not *this (reference)
* lyxsocket.C (LyXServerSocket): ditto
(serverCallback): ditto
2004-07-23 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* LaTeXFeatures.C: check release date when loading jurabib.

View File

@ -207,7 +207,7 @@ int LyXComm::startPipe(string const & filename, bool write)
}
if (!write) {
lyx_gui::register_socket_callback(fd, boost::bind(&LyXComm::read_ready, *this));
lyx_gui::register_socket_callback(fd, boost::bind(&LyXComm::read_ready, this));
}
return fd;

View File

@ -56,7 +56,7 @@ LyXServerSocket::LyXServerSocket(LyXFunc * f, string const & addr)
lyx_gui::register_socket_callback(
fd_,
boost::bind(&LyXServerSocket::serverCallback, *this)
boost::bind(&LyXServerSocket::serverCallback, this)
);
lyxerr[Debug::LYXSERVER] << "lyx: New server socket "
@ -103,7 +103,7 @@ void LyXServerSocket::serverCallback()
lyx_gui::register_socket_callback(
client_fd,
boost::bind(&LyXServerSocket::dataCallback,
*this, client_fd)
this, client_fd)
);
}