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

Miklos Vajna vmiklos at collabora.co.uk
Fri Jul 15 12:47:29 UTC 2016


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

New commits:
commit 8054df543ab362605b5c9bf16497ac9bc2e9078b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Jul 15 14:46:47 2016 +0200

    ClientSession: use std::move() where it avoids copying

diff --git a/loolwsd/ClientSession.cpp b/loolwsd/ClientSession.cpp
index 587d582..fda1678 100644
--- a/loolwsd/ClientSession.cpp
+++ b/loolwsd/ClientSession.cpp
@@ -40,8 +40,8 @@ ClientSession::ClientSession(const std::string& id,
                              std::shared_ptr<BasicTileQueue> queue,
                              bool readOnly) :
     LOOLSession(id, Kind::ToClient, ws),
-    _docBroker(docBroker),
-    _queue(queue),
+    _docBroker(std::move(docBroker)),
+    _queue(std::move(queue)),
     _haveEditLock(std::getenv("LOK_VIEW_CALLBACK")),
     _isReadOnly(readOnly),
     _loadFailed(false),


More information about the Libreoffice-commits mailing list