diff options
author | Max Kellermann <max@duempel.org> | 2013-01-14 11:24:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-14 11:24:29 +0100 |
commit | aa4c506fcd63cd20fee48d07fae02e84a1f73704 (patch) | |
tree | 43d8f763dcbe95b53dd55a107bc9dc30104ff32b /src/ClientList.cxx | |
parent | d3a479b7fa1d1e52f9d3950139643fe7e3ff5a57 (diff) | |
download | mpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.tar.gz mpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.tar.xz mpd-aa4c506fcd63cd20fee48d07fae02e84a1f73704.zip |
Revert "ClientList.cxx: copy client list before iterating"
This reverts commit f53dadcc6d0a29ce7419a07a51762b4b44654696, to
prepare for a better solution.
Diffstat (limited to 'src/ClientList.cxx')
-rw-r--r-- | src/ClientList.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ClientList.cxx b/src/ClientList.cxx index 403da3a18..b45be34c3 100644 --- a/src/ClientList.cxx +++ b/src/ClientList.cxx @@ -59,8 +59,7 @@ client_list_add(Client *client) void client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx) { - auto clients_local = std::list<Client *>(clients); - for (Client *client : clients_local) + for (Client *client : clients) callback(client, ctx); } |