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

New commits:
commit 53384000a26222b5ba7189df43fa40022e53e153
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Tue Jan 30 15:50:10 2018 +0100

    common: avoid pointless copy in Util
    
    loolforkit is never able to get the arguments passed to it without this
    patch and nothing starts.
    
    Change-Id: I40097203eba6fede78a17caf057452f4704b2bd4
    (cherry picked from commit 222399e99a2cec31bf6414252765098467629f70)
    Reviewed-on: https://gerrit.libreoffice.org/49243
    Reviewed-by: pranavk <pran...@collabora.co.uk>
    Tested-by: pranavk <pran...@collabora.co.uk>

diff --git a/common/Util.cpp b/common/Util.cpp
index 357f6da8..8c7792c9 100644
--- a/common/Util.cpp
+++ b/common/Util.cpp
@@ -173,7 +173,7 @@ namespace Util
 
         std::vector<char *> params;
         params.push_back(const_cast<char *>(cmd.c_str()));
-        for (auto i : args)
+        for (const auto& i : args)
             params.push_back(const_cast<char *>(i.c_str()));
         params.push_back(nullptr);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to