diff options
Diffstat (limited to '')
-rw-r--r-- | src/ClientList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientList.cxx b/src/ClientList.cxx index b45be34c3..a1248c8ec 100644 --- a/src/ClientList.cxx +++ b/src/ClientList.cxx @@ -59,8 +59,8 @@ client_list_add(Client *client) void client_list_foreach(void (*callback)(Client *client, void *ctx), void *ctx) { - for (Client *client : clients) - callback(client, ctx); + for (auto client = clients.begin(); client != clients.end();) + callback(*(client++), ctx); } void |