diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-08 23:24:37 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 22:48:21 +0200 |
commit | 69d8407badcb703709534f5097b9b5697ac3404c (patch) | |
tree | 7a7e126b0ce0181f22397d62ca3d4e553482b439 /src/gui/chat.cpp | |
parent | 1158bce840bbd76a297c4f5eefd19444584f6fcd (diff) | |
download | mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.gz mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.bz2 mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.xz mana-69d8407badcb703709534f5097b9b5697ac3404c.zip |
Made BeingManager methods const where appropriate
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index b7a57da5..ab98b594 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -287,11 +287,11 @@ void ChatWindow::chatInput(std::string &msg) void ChatWindow::doPresent() { - Beings & beings = beingManager->getAll(); + const Beings &beings = beingManager->getAll(); std::string response = ""; - for (BeingIterator bi = beings.begin(), be = beings.end(); - bi != be; ++bi) + for (Beings::const_iterator bi = beings.begin(), be = beings.end(); + bi != be; ++bi) { if ((*bi)->getType() == Being::PLAYER) { |