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

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 13 06:44:50 UTC 2019


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

New commits:
commit 79133e7af11e1a73affe884458ee8b63b69809b1
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Jun 13 08:44:05 2019 +0200
Commit:     Miklos Vajna <vmiklos at 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));


More information about the Libreoffice-commits mailing list