chore: use ranged for in ClientListener::cleanupClientSockets

This commit is contained in:
sithlord48 2025-05-23 01:39:39 -04:00 committed by Chris Rizzitello
parent 647201cd37
commit a4f1a382d3

View file

@ -235,9 +235,8 @@ void ClientListener::cleanupListenSocket()
void ClientListener::cleanupClientSockets() void ClientListener::cleanupClientSockets()
{ {
ClientSockets::iterator it; for (auto client : m_clientSockets) {
for (it = m_clientSockets.begin(); it != m_clientSockets.end(); it++) { delete client;
delete *it;
} }
m_clientSockets.clear(); m_clientSockets.clear();
} }