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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Thu Apr 28 22:21:00 UTC 2016


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

New commits:
commit 466ffc25dba5a893de8faaaecebd600b950027a0
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Apr 27 20:30:20 2016 -0400

    Use [] around messages as they are more readable than ''
    
    Change-Id: Id172bb03e8fa9dd148612d756d4a74fc501ea95c
    Reviewed-on: https://gerrit.libreoffice.org/24469
    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 9420be8..a11d6d0 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 std::string('[' + firstLine + "]...");
         }
 
-        return std::string('\'' + firstLine + '\'');
+        return std::string('[' + firstLine + ']');
     }
 };
 


More information about the Libreoffice-commits mailing list