diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:38:51 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:38:51 +0000 |
commit | 9b3201f45fa710902df352178f9932d266a392af (patch) | |
tree | c91c7fb29d340fa4a6b61c203d468a03799003ca /cpp/src/Ice/RouterInfo.cpp | |
parent | Bug 803 - changed communicator initialization (diff) | |
download | ice-9b3201f45fa710902df352178f9932d266a392af.tar.bz2 ice-9b3201f45fa710902df352178f9932d266a392af.tar.xz ice-9b3201f45fa710902df352178f9932d266a392af.zip |
Changed map to set for identities
Diffstat (limited to 'cpp/src/Ice/RouterInfo.cpp')
-rw-r--r-- | cpp/src/Ice/RouterInfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/Ice/RouterInfo.cpp b/cpp/src/Ice/RouterInfo.cpp index c842636a18d..c426735b85d 100644 --- a/cpp/src/Ice/RouterInfo.cpp +++ b/cpp/src/Ice/RouterInfo.cpp @@ -123,7 +123,7 @@ IceInternal::RouterInfo::destroy() _clientProxy = 0; _serverProxy = 0; _adapter = 0; - _map.clear(); + _identities.clear(); } bool @@ -241,9 +241,9 @@ IceInternal::RouterInfo::addProxy(const ObjectPrx& proxy) IceUtil::Mutex::Lock sync(*this); - map<Identity, int>::iterator p = _map.find(proxy->ice_getIdentity()); + set<Identity>::iterator p = _identities.find(proxy->ice_getIdentity()); - if(p == _map.end()) + if(p == _identities.end()) { // // Only add the proxy to the router if it's not already in our local map. @@ -255,14 +255,14 @@ IceInternal::RouterInfo::addProxy(const ObjectPrx& proxy) // // If we successfully added the proxy to the router, we add it to our local map. // - _map.insert(_map.begin(), pair<const Identity, int>(proxy->ice_getIdentity(), 0)); + _identities.insert(_identities.begin(), proxy->ice_getIdentity()); // // We also must remove whatever proxies the router evicted. // for(ObjectProxySeq::iterator q = evictedProxies.begin(); q != evictedProxies.end(); ++q) { - _map.erase((*q)->ice_getIdentity()); + _identities.erase((*q)->ice_getIdentity()); } } } |