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

Miklos Vajna vmiklos at collabora.co.uk
Tue Sep 13 06:45:38 UTC 2016


 loolwsd/MessageQueue.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 74a29c4ee4d4a232e1f2fa8d5c6e6ae835eb05e0
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Sep 13 08:41:51 2016 +0200

    MessageQueue: avoid allocation of unnecessary temporary strings
    
    Change-Id: I9162407020d84d0c92c9d1c6dfab806c67f3b873

diff --git a/loolwsd/MessageQueue.cpp b/loolwsd/MessageQueue.cpp
index b4a9c20..027051e 100644
--- a/loolwsd/MessageQueue.cpp
+++ b/loolwsd/MessageQueue.cpp
@@ -120,7 +120,7 @@ void TileQueue::put_impl(const Payload& value)
                 Log::error(std::to_string(i) + ": " + oldMsg);
                 if (newMsg == oldMsg)
                 {
-                    Log::trace("Replacing duplicate tile: " + oldMsg + " -> " + newMsg);
+                    Log::trace() << "Replacing duplicate tile: " << oldMsg << " -> " << newMsg << Log::end;
                     _queue[i] = value;
                     return;
                 }


More information about the Libreoffice-commits mailing list