[Libreoffice-commits] online.git: loolwsd/PrisonerSession.cpp

Miklos Vajna vmiklos at collabora.co.uk
Tue Jul 26 07:30:09 UTC 2016


 loolwsd/PrisonerSession.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e36ecbaf787d817eba2803f7fa970b7828d3f12a
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Jul 26 09:29:39 2016 +0200

    PrisonerSession: use std::move()
    
    Change-Id: I934eb4fcc5ebac12e8a85bfe711afddf79b8194f

diff --git a/loolwsd/PrisonerSession.cpp b/loolwsd/PrisonerSession.cpp
index 97fa52b..0968878 100644
--- a/loolwsd/PrisonerSession.cpp
+++ b/loolwsd/PrisonerSession.cpp
@@ -37,7 +37,7 @@ PrisonerSession::PrisonerSession(const std::string& id,
                                  std::shared_ptr<Poco::Net::WebSocket> ws,
                                  std::shared_ptr<DocumentBroker> docBroker) :
     LOOLSession(id, Kind::ToPrisoner, ws),
-    _docBroker(docBroker),
+    _docBroker(std::move(docBroker)),
     _curPart(0)
 {
     Log::info("PrisonerSession ctor [" + getName() + "].");
@@ -175,7 +175,7 @@ bool PrisonerSession::_handleInput(const char *buffer, int length)
     {
         if (tokens[0] == "tile:")
         {
-            assert(!"Tile traffic should go through the DocumentBroker-LoKit WS.");
+            assert(false && "Tile traffic should go through the DocumentBroker-LoKit WS.");
         }
         else if (tokens[0] == "status:")
         {


More information about the Libreoffice-commits mailing list