net/Socket.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 58d9b0ebbf9bc904ecde87efe353a7853a7b63dc Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Jun 12 08:58:22 2019 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Jun 12 08:58:22 2019 +0200
net: avoid unnecessary copy in checkAndReThread() Change-Id: I7a31ded80de128c46f59db3f0cba497de2f9f96c diff --git a/net/Socket.hpp b/net/Socket.hpp index 5ebdc5560..9992b2607 100644 --- a/net/Socket.hpp +++ b/net/Socket.hpp @@ -483,7 +483,7 @@ public: return; // all well LOG_DBG("Ununusual - SocketPoll used from a new thread"); _owner = us; - for (auto it : _pollSockets) + for (const auto& it : _pollSockets) it->setThreadOwner(us); // _newSockets are adapted as they are inserted. } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits