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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed May 4 10:33:39 UTC 2016


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

New commits:
commit ac4f9857ead3d1ac91f6175165a61eb9031f9c47
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue May 3 20:56:34 2016 -0400

    loolwsd: getAbbreviatedMessage adds no brackets
    
    Change-Id: Ic26feda6fa8e9e93548624f9d6b6fd84f085eb19
    Reviewed-on: https://gerrit.libreoffice.org/24638
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/LOOLProtocol.cpp b/loolwsd/LOOLProtocol.cpp
index a11d6d0..bdc32cd 100644
--- a/loolwsd/LOOLProtocol.cpp
+++ b/loolwsd/LOOLProtocol.cpp
@@ -192,10 +192,10 @@ namespace LOOLProtocol
         // If first line is less than the length (minus newline), add eclipes.
         if (firstLine.size() < static_cast<std::string::size_type>(length) - 1)
         {
-            return std::string('[' + firstLine + "]...");
+            return firstLine + "...";
         }
 
-        return std::string('[' + firstLine + ']');
+        return firstLine;
     }
 };
 


More information about the Libreoffice-commits mailing list