aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientList.cxx b/src/ClientList.cxx
index a1248c8ec..b45be34c3 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 (auto client = clients.begin(); client != clients.end();)
- callback(*(client++), ctx);
+ for (Client *client : clients)
+ callback(client, ctx);
}
void