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

Miklos Vajna vmiklos at collabora.co.uk
Mon Feb 6 08:31:03 UTC 2017


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

New commits:
commit 18f40e89e182db5210ec474b1998afc9b4ce0f97
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Feb 6 09:30:35 2017 +0100

    common: avoid unnecessary value parameter in MessageQueue
    
    Change-Id: I4cefc2658eea75091219e534db25f5ab5877c0c4

diff --git a/common/MessageQueue.cpp b/common/MessageQueue.cpp
index 65a51a2..5c4a843 100644
--- a/common/MessageQueue.cpp
+++ b/common/MessageQueue.cpp
@@ -127,7 +127,7 @@ void TileQueue::removeTileDuplicate(const std::string& tileMsg)
 namespace {
 
 /// Read the viewId from the tokens.
-std::string extractViewId(const std::string& origMsg, const std::vector<std::string> tokens)
+std::string extractViewId(const std::string& origMsg, const std::vector<std::string>& tokens)
 {
     size_t nonJson = tokens[0].size() + tokens[1].size() + tokens[2].size() + 3; // including spaces
     std::string jsonString(origMsg.data() + nonJson, origMsg.size() - nonJson);


More information about the Libreoffice-commits mailing list