src/lib/server/Server.cpp: PVS-Studio: Initial and final values of the iterator are the same.

This commit is contained in:
Svyatoslav 2017-04-20 12:08:31 +03:00 committed by Andrew Nelless
parent a73b65431b
commit 30baa8fbe1
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ Server::~Server()
// force immediate disconnection of secondary clients // force immediate disconnection of secondary clients
disconnect(); disconnect();
for (OldClients::iterator index = m_oldClients.begin(); for (OldClients::iterator index = m_oldClients.begin();
index != m_oldClients.begin(); ++index) { index != m_oldClients.end(); ++index) {
BaseClientProxy* client = index->first; BaseClientProxy* client = index->first;
m_events->deleteTimer(index->second); m_events->deleteTimer(index->second);
m_events->removeHandler(Event::kTimer, client); m_events->removeHandler(Event::kTimer, client);