[Libreoffice-commits] online.git: common/Util.cpp
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jan 30 15:22:29 UTC 2018
common/Util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 222399e99a2cec31bf6414252765098467629f70
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jan 30 15:50:10 2018 +0100
common: avoid pointless copy in Util
Change-Id: I40097203eba6fede78a17caf057452f4704b2bd4
diff --git a/common/Util.cpp b/common/Util.cpp
index d42fcd62..a26b829b 100644
--- a/common/Util.cpp
+++ b/common/Util.cpp
@@ -175,7 +175,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);
More information about the Libreoffice-commits
mailing list