X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.cpp;h=14c1e202dd7eb09fe275338e04e72272c2b308c1;hb=700af7e7011f102d92222744791638ff2db18f94;hp=286be5d4da9cea891424cd0257d0d686ccb9d71b;hpb=b89cc942eb458284f40f4d4e7db58890c3288979;p=lyx.git diff --git a/src/Server.cpp b/src/Server.cpp index 286be5d4da..14c1e202dd 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -40,15 +40,15 @@ #include #include "Server.h" -#include "support/debug.h" #include "FuncRequest.h" #include "LyXAction.h" #include "LyXFunc.h" + #include "frontends/Application.h" +#include "support/debug.h" #include "support/FileName.h" #include "support/lstrings.h" -#include "support/lyxlib.h" #include @@ -72,7 +72,7 @@ namespace lyx { #if !defined (HAVE_MKFIFO) // We provide a stub class that disables the lyxserver. -LyXComm::LyXComm(std::string const &, Server *, ClientCallbackfct) +LyXComm::LyXComm(string const &, Server *, ClientCallbackfct) {} void LyXComm::openConnection() @@ -107,7 +107,7 @@ void LyXComm::send(string const & msg) #else // defined (HAVE_MKFIFO) -LyXComm::LyXComm(std::string const & pip, Server * cli, ClientCallbackfct ccb) +LyXComm::LyXComm(string const & pip, Server * cli, ClientCallbackfct ccb) : pipename_(pip), client_(cli), clientcb_(ccb) { ready_ = false; @@ -344,7 +344,7 @@ void ServerCallback(Server * server, string const & msg) server->callback(msg); } -Server::Server(LyXFunc * f, std::string const & pipes) +Server::Server(LyXFunc * f, string const & pipes) : numclients_(0), func_(f), pipes_(pipes, this, &ServerCallback) {}