summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/HelloI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceBox/hello/HelloI.cpp')
-rw-r--r--cpp/demo/IceBox/hello/HelloI.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/demo/IceBox/hello/HelloI.cpp b/cpp/demo/IceBox/hello/HelloI.cpp
index 7f9e1f1dac2..ac5499dd37c 100644
--- a/cpp/demo/IceBox/hello/HelloI.cpp
+++ b/cpp/demo/IceBox/hello/HelloI.cpp
@@ -17,11 +17,6 @@
using namespace std;
-HelloI::HelloI(const Ice::CommunicatorPtr& communicator) :
- _communicator(communicator)
-{
-}
-
void
HelloI::sayHello(const Ice::Current&)
{
@@ -29,8 +24,8 @@ HelloI::sayHello(const Ice::Current&)
}
void
-HelloI::shutdown(const Ice::Current&)
+HelloI::shutdown(const Ice::Current& c)
{
cout << "Shutting down..." << endl;
- _communicator->shutdown();
+ c.adapter->getCommunicator()->shutdown();
}