test/UnitHTTP.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79133e7af11e1a73affe884458ee8b63b69809b1
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Thu Jun 13 08:44:05 2019 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Jun 13 08:44:05 2019 +0200

    test: avoid unnecessary copy in expectString()
    
    Change-Id: Ic4d45b383d32e993cada3437f8af8599506a9692

diff --git a/test/UnitHTTP.cpp b/test/UnitHTTP.cpp
index 3537b5f96..5439124af 100644
--- a/test/UnitHTTP.cpp
+++ b/test/UnitHTTP.cpp
@@ -89,7 +89,7 @@ public:
         socket->sendBytes(str.c_str(), str.size());
     }
 
-    bool expectString(const std::shared_ptr<Poco::Net::StreamSocket> &socket, 
std::string str)
+    bool expectString(const std::shared_ptr<Poco::Net::StreamSocket> &socket, 
const std::string& str)
     {
         char buffer[str.size() + 64];
         memset(&buffer, 0, sizeof(buffer));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to