diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 23:05:28 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 23:05:28 +0200 |
commit | 4893acb9cdbd83349f88668ca932f7fddd3e8288 (patch) | |
tree | d4d8bca192d36d5f95d1d6a583c8af991daabf19 /src/net/ea/network.cpp | |
parent | c8d5b5596acc1f6e93e8cc6df3e6c92bf6cc4bd8 (diff) | |
download | mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.gz mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.bz2 mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.xz mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.zip |
Some random cleanups
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r-- | src/net/ea/network.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 8f55236f..690ca946 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -175,7 +175,7 @@ void Network::disconnect() void Network::registerHandler(MessageHandler *handler) { - for (const Uint16 *i = handler->handledMessages; *i; i++) + for (const Uint16 *i = handler->handledMessages; *i; ++i) { mMessageHandlers[*i] = handler; } @@ -185,7 +185,7 @@ void Network::registerHandler(MessageHandler *handler) void Network::unregisterHandler(MessageHandler *handler) { - for (const Uint16 *i = handler->handledMessages; *i; i++) + for (const Uint16 *i = handler->handledMessages; *i; ++i) { mMessageHandlers.erase(*i); } @@ -196,7 +196,7 @@ void Network::unregisterHandler(MessageHandler *handler) void Network::clearHandlers() { MessageHandlerIterator i; - for (i = mMessageHandlers.begin(); i != mMessageHandlers.end(); i++) + for (i = mMessageHandlers.begin(); i != mMessageHandlers.end(); ++i) { i->second->setNetwork(0); } |