loolwsd/LOOLSession.cpp | 4 ++-- loolwsd/LOOLSession.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit a7f2e5aa290c4fcbdba04f8aa7b2902480b35eb9 Author: Tor Lillqvist <t...@collabora.com> Date: Mon Jun 8 16:35:52 2015 +0300 The buffer parameter to handleInput() can be const diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp index 9843832..5b30949 100644 --- a/loolwsd/LOOLSession.cpp +++ b/loolwsd/LOOLSession.cpp @@ -123,7 +123,7 @@ MasterProcessSession::~MasterProcessSession() } } -bool MasterProcessSession::handleInput(char *buffer, int length) +bool MasterProcessSession::handleInput(const char *buffer, int length) { Application::instance().logger().information(Util::logPrefix() + "Input: " + getAbbreviatedMessage(buffer, length)); @@ -647,7 +647,7 @@ ChildProcessSession::~ChildProcessSession() Util::shutdownWebSocket(*_ws); } -bool ChildProcessSession::handleInput(char *buffer, int length) +bool ChildProcessSession::handleInput(const char *buffer, int length) { Application& app = Application::instance(); diff --git a/loolwsd/LOOLSession.hpp b/loolwsd/LOOLSession.hpp index 7cac320..8eef54e 100644 --- a/loolwsd/LOOLSession.hpp +++ b/loolwsd/LOOLSession.hpp @@ -53,7 +53,7 @@ protected: const Kind _kind; - virtual bool handleInput(char *buffer, int length) = 0; + virtual bool handleInput(const char *buffer, int length) = 0; void sendBinaryFrame(const char *buffer, int length); @@ -94,7 +94,7 @@ public: MasterProcessSession(std::shared_ptr<Poco::Net::WebSocket> ws, Kind kind); virtual ~MasterProcessSession(); - virtual bool handleInput(char *buffer, int length) override; + virtual bool handleInput(const char *buffer, int length) override; bool haveSeparateProcess(); @@ -152,7 +152,7 @@ public: ChildProcessSession(std::shared_ptr<Poco::Net::WebSocket> ws, LibreOfficeKit *loKit); virtual ~ChildProcessSession(); - virtual bool handleInput(char *buffer, int length) override; + virtual bool handleInput(const char *buffer, int length) override; virtual bool getStatus(const char *buffer, int length); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits