[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - wsd/ClientSession.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Tue May 29 14:56:53 UTC 2018


 wsd/ClientSession.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 1f30b1fe9fc7de54f908e0d39e4f89aad6569688
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Feb 28 09:20:55 2018 -0500

    wsd: localize variables
    
    Change-Id: I411e435fa2360423b4c48d087eb501b942cc637d
    Reviewed-on: https://gerrit.libreoffice.org/52681
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 5d172417a..d85366ef2 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -869,11 +869,9 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt
 
 bool ClientSession::forwardToClient(const std::shared_ptr<Message>& payload)
 {
-    const auto& message = payload->abbr();
-
     if (isCloseFrame())
     {
-        LOG_TRC(getName() << ": peer began the closing handshake. Dropping forward message [" << message << "].");
+        LOG_TRC(getName() << ": peer began the closing handshake. Dropping forward message [" << payload->abbr() << "].");
         return true;
     }
 


More information about the Libreoffice-commits mailing list