[Libreoffice-commits] online.git: net/Socket.hpp
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 12 06:59:18 UTC 2019
net/Socket.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 58d9b0ebbf9bc904ecde87efe353a7853a7b63dc
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Jun 12 08:58:22 2019 +0200
Commit: Miklos Vajna <vmiklos at 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.
}
More information about the Libreoffice-commits
mailing list