summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/AdapterRegistryI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2004-06-02 21:17:40 +0000
committerBenoit Foucher <benoit@zeroc.com>2004-06-02 21:17:40 +0000
commitc209ff436f4268b8db689a2dd17615456eea78ce (patch)
tree5feb8607988706851bfdfdd5ba2d3924ba5b8f6c /cpp/src/IcePack/AdapterRegistryI.cpp
parentFixed to AMD code generation. (diff)
downloadice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.bz2
ice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.xz
ice-c209ff436f4268b8db689a2dd17615456eea78ce.zip
Merged icepack_refactoring2_branch, many IcePack changes.
Diffstat (limited to 'cpp/src/IcePack/AdapterRegistryI.cpp')
-rw-r--r--cpp/src/IcePack/AdapterRegistryI.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IcePack/AdapterRegistryI.cpp b/cpp/src/IcePack/AdapterRegistryI.cpp
index 9cfcd0e5d69..1f34ee5e6e8 100644
--- a/cpp/src/IcePack/AdapterRegistryI.cpp
+++ b/cpp/src/IcePack/AdapterRegistryI.cpp
@@ -65,7 +65,7 @@ IcePack::AdapterRegistryI::add(const string& id, const AdapterPrx& adapter, cons
}
}
-void
+AdapterPrx
IcePack::AdapterRegistryI::remove(const string& id, const Ice::Current&)
{
Freeze::ConnectionPtr connection = Freeze::createConnection(_communicator, _envName);
@@ -76,7 +76,8 @@ IcePack::AdapterRegistryI::remove(const string& id, const Ice::Current&)
{
throw AdapterNotExistException();
}
-
+
+ AdapterPrx adapter = AdapterPrx::uncheckedCast(p->second);
dict.erase(p);
if(_traceLevels->adapterRegistry > 0)
@@ -84,6 +85,8 @@ IcePack::AdapterRegistryI::remove(const string& id, const Ice::Current&)
Ice::Trace out(_traceLevels->logger, _traceLevels->adapterRegistryCat);
out << "removed adapter `" << id << "'";
}
+
+ return adapter;
}
AdapterPrx