diff options
-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); } |