diff options
| author | megamage <none@none> | 2009-04-29 00:26:07 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-29 00:26:07 -0500 |
| commit | de11b9e901d1d1caa0634fad541f08f11c5781af (patch) | |
| tree | e35503d08ef545e668b8d854da41e0ea6aba3b3b /src/game/WorldSocketMgr.cpp | |
| parent | 9dd4b8c98599b0bdccea7b9acb61cb4e7a35da8f (diff) | |
[7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
Diffstat (limited to 'src/game/WorldSocketMgr.cpp')
| -rw-r--r-- | src/game/WorldSocketMgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/WorldSocketMgr.cpp b/src/game/WorldSocketMgr.cpp index e8f8bad5894..561fa37eee3 100644 --- a/src/game/WorldSocketMgr.cpp +++ b/src/game/WorldSocketMgr.cpp @@ -134,7 +134,7 @@ class ReactorRunnable : protected ACE_Task_Base if (m_NewSockets.empty ()) return; - for (SocketSet::iterator i = m_NewSockets.begin (); i != m_NewSockets.end (); ++i) + for (SocketSet::const_iterator i = m_NewSockets.begin (); i != m_NewSockets.end (); ++i) { WorldSocket* sock = (*i); @@ -158,7 +158,7 @@ class ReactorRunnable : protected ACE_Task_Base ACE_ASSERT (m_Reactor); - SocketSet::iterator i, t; + SocketSet::const_iterator i, t; while (!m_Reactor->reactor_event_loop_done ()) { @@ -176,14 +176,14 @@ class ReactorRunnable : protected ACE_Task_Base if ((*i)->Update () == -1) { t = i; - i++; + ++i; (*t)->CloseSocket (); (*t)->RemoveReference (); --m_Connections; m_Sockets.erase (t); } else - i++; + ++i; } } |
