summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ObjectAdapterI.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-15 01:44:28 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-15 01:44:28 +0000
commit53423d3d91c34f3970af00117ebfccf3eca8b3e0 (patch)
treef5dedec028e378889f6190fcb3bd2135f912ce08 /cpp/src/Ice/ObjectAdapterI.cpp
parentstarted with Freeze (diff)
downloadice-53423d3d91c34f3970af00117ebfccf3eca8b3e0.tar.bz2
ice-53423d3d91c34f3970af00117ebfccf3eca8b3e0.tar.xz
ice-53423d3d91c34f3970af00117ebfccf3eca8b3e0.zip
fixes
Diffstat (limited to 'cpp/src/Ice/ObjectAdapterI.cpp')
-rw-r--r--cpp/src/Ice/ObjectAdapterI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp
index e3af5411c4e..6a52c0ef8f8 100644
--- a/cpp/src/Ice/ObjectAdapterI.cpp
+++ b/cpp/src/Ice/ObjectAdapterI.cpp
@@ -83,8 +83,8 @@ Ice::ObjectAdapterI::deactivate()
for_each(_collectorFactories.begin(), _collectorFactories.end(),
::IceInternal::voidMemFun(& CollectorFactory::destroy));
_collectorFactories.clear();
- _asm.clear();
- _asmHint = _asm.begin();
+ _activeServantMap.clear();
+ _activeServantMapHint = _activeServantMap.begin();
}
ObjectPrx
@@ -97,7 +97,7 @@ Ice::ObjectAdapterI::add(const ObjectPtr& object, const string& ident)
throw ObjectAdapterDeactivatedException(__FILE__, __LINE__);
}
- _asmHint = _asm.insert(_asmHint, make_pair(ident, object));
+ _activeServantMapHint = _activeServantMap.insert(_activeServantMapHint, make_pair(ident, object));
return newProxy(ident);
}
@@ -124,7 +124,7 @@ Ice::ObjectAdapterI::addTemporary(const ObjectPtr& object)
s << hex << '.' << tv.tv_sec << '.' << tv.tv_usec / 1000 << '.' << rand();
#endif
- _asmHint = _asm.insert(_asmHint, make_pair(s.str(), object));
+ _activeServantMapHint = _activeServantMap.insert(_activeServantMapHint, make_pair(s.str(), object));
return newProxy(s.str());
}
@@ -139,8 +139,8 @@ Ice::ObjectAdapterI::remove(const string& ident)
throw ObjectAdapterDeactivatedException(__FILE__, __LINE__);
}
- _asm.erase(ident);
- _asmHint = _asm.begin();
+ _activeServantMap.erase(ident);
+ _activeServantMapHint = _activeServantMap.begin();
}
void
@@ -162,8 +162,8 @@ Ice::ObjectAdapterI::identityToServant(const string& ident)
{
JTCSyncT<JTCMutex> sync(*this);
- map<string, ObjectPtr>::const_iterator p = _asm.find(ident);
- if (p != _asm.end())
+ map<string, ObjectPtr>::const_iterator p = _activeServantMap.find(ident);
+ if (p != _activeServantMap.end())
{
return p->second;
}
@@ -217,7 +217,7 @@ Ice::ObjectAdapterI::createProxy(const string& ident)
Ice::ObjectAdapterI::ObjectAdapterI(const InstancePtr& instance, const string& name, const string& endpts) :
_instance(instance),
_name(name),
- _asmHint(_asm.begin())
+ _activeServantMapHint(_activeServantMap.begin())
{
string s(endpts);
transform(s.begin(), s.end(), s.begin(), tolower);