summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/chat/ChatSessionI.cpp
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2005-03-11 14:46:39 +0000
committerBrent Eagles <brent@zeroc.com>2005-03-11 14:46:39 +0000
commitb9accb3adb0b48fb20abc4d70794f5c375f3ef3b (patch)
tree78e681c137119c4cdf5ab4c1a7efb4ca4b6a54f0 /cpp/demo/Glacier2/chat/ChatSessionI.cpp
parentCouple of minor cleanups to the demo. (diff)
downloadice-b9accb3adb0b48fb20abc4d70794f5c375f3ef3b.tar.bz2
ice-b9accb3adb0b48fb20abc4d70794f5c375f3ef3b.tar.xz
ice-b9accb3adb0b48fb20abc4d70794f5c375f3ef3b.zip
fix compilation bug for non MSDev compilers
Diffstat (limited to 'cpp/demo/Glacier2/chat/ChatSessionI.cpp')
-rwxr-xr-xcpp/demo/Glacier2/chat/ChatSessionI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/demo/Glacier2/chat/ChatSessionI.cpp b/cpp/demo/Glacier2/chat/ChatSessionI.cpp
index 0bf9d133a94..8c76e6e77cc 100755
--- a/cpp/demo/Glacier2/chat/ChatSessionI.cpp
+++ b/cpp/demo/Glacier2/chat/ChatSessionI.cpp
@@ -28,12 +28,14 @@ void
ChatRoomMembers::remove(const ChatCallbackPrx& callback)
{
IceUtil::Mutex::Lock sync(*this);
- for(list<ChatCallbackPrx>::iterator p = _members.begin(); p != _members.end(); ++p)
+ list<ChatCallbackPrx>::iterator p = _members.begin();
+ while(p != _members.end())
{
if(Ice::proxyIdentityEqual(callback, *p))
{
break;
}
+ ++p;
}
if(p != _members.end())
{