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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 30 07:38:18 UTC 2018


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

New commits:
commit 84d224d995c8a08d6ae9d5f8a712e2f353a8b388
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Nov 30 08:37:50 2018 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Nov 30 08:38:00 2018 +0100

    test: no need to copy procEntry
    
    Change-Id: Iac7bca9ebcf104975d01bcd1cdfe8e0f4d2a742e

diff --git a/test/test.cpp b/test/test.cpp
index 4a4ba9421..f09e1f855 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -154,7 +154,7 @@ std::vector<int> getProcPids(const char* exec_filename, bool ignoreZombies = fal
     {
         try
         {
-            Poco::Path procEntry = it.path();
+            const Poco::Path& procEntry = it.path();
             const std::string& fileName = procEntry.getFileName();
             int pid;
             std::size_t endPos = 0;


More information about the Libreoffice-commits mailing list