From 021e5d79aaacda9a107829c1c58750c85159dfaa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 17:00:53 -0400 Subject: Fix confusing iteration over collections of pointers --- src/server/events/DisconnectAll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/events') diff --git a/src/server/events/DisconnectAll.cpp b/src/server/events/DisconnectAll.cpp index e429e0e6..4ca6c8d6 100644 --- a/src/server/events/DisconnectAll.cpp +++ b/src/server/events/DisconnectAll.cpp @@ -68,7 +68,7 @@ DisconnectAll::DisconnectAll(Engine& engine, DisconnectAll::~DisconnectAll() { - for (auto& i : _impls) { + for (auto* i : _impls) { delete i; } } -- cgit v1.2.1