[Libreoffice-commits] online.git: test/UnitHTTP.cpp

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 6 07:47:18 UTC 2019


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

New commits:
commit 4c5f3d7826a21a735f508b64afa7b8b739950b24
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Jun 6 09:46:53 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Jun 6 09:46:53 2019 +0200

    test: avoid not needed copy
    
    Change-Id: I45561d5d3772650139ab9cc3151abb8ddd7c248c

diff --git a/test/UnitHTTP.cpp b/test/UnitHTTP.cpp
index 7d20b20c1..3537b5f96 100644
--- a/test/UnitHTTP.cpp
+++ b/test/UnitHTTP.cpp
@@ -84,7 +84,7 @@ public:
         }
     }
 
-    void writeString(const std::shared_ptr<Poco::Net::StreamSocket> &socket, std::string str)
+    void writeString(const std::shared_ptr<Poco::Net::StreamSocket> &socket, const std::string& str)
     {
         socket->sendBytes(str.c_str(), str.size());
     }


More information about the Libreoffice-commits mailing list