diff options
Diffstat (limited to 'cpp/demo/IcePack/hello/HelloI.cpp')
-rw-r--r-- | cpp/demo/IcePack/hello/HelloI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/IcePack/hello/HelloI.cpp b/cpp/demo/IcePack/hello/HelloI.cpp index 0b95713079f..3b04f141ad6 100644 --- a/cpp/demo/IcePack/hello/HelloI.cpp +++ b/cpp/demo/IcePack/hello/HelloI.cpp @@ -93,7 +93,7 @@ HelloFactoryI::find(const string& name, const Ice::Current& current) const // been removed from the object registry. // IcePack::AdminPrx admin = IcePack::AdminPrx::checkedCast(communicator->stringToProxy("IcePack/Admin")); - admin->removeObject(communicator->stringToProxy(name)); + admin->removeObject(Ice::stringToIdentity(name)); throw NameNotExistException(); } } @@ -120,7 +120,7 @@ HelloI::destroy(const Ice::Current& current) // from the IcePack object registry. // IcePack::AdminPrx admin = IcePack::AdminPrx::checkedCast(communicator->stringToProxy("IcePack/Admin")); - admin->removeObject(adapter->createProxy(current.id)); + admin->removeObject(current.id); // // Remove the Hello object from the object adapter. |