diff options
author | Brent Eagles <brent@zeroc.com> | 2005-03-11 14:46:39 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-03-11 14:46:39 +0000 |
commit | b9accb3adb0b48fb20abc4d70794f5c375f3ef3b (patch) | |
tree | 78e681c137119c4cdf5ab4c1a7efb4ca4b6a54f0 /cpp/demo/Glacier2/chat/ChatSessionI.cpp | |
parent | Couple of minor cleanups to the demo. (diff) | |
download | ice-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-x | cpp/demo/Glacier2/chat/ChatSessionI.cpp | 4 |
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()) { |