summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/HelloI.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-06-26 05:12:04 +0000
committerMichi Henning <michi@zeroc.com>2003-06-26 05:12:04 +0000
commit59248eaddcbe2db56b655176f30278c5b6938b8e (patch)
treec005216681efaf7bb13133c22e28ee3a2eaf7605 /cpp/demo/IceBox/hello/HelloI.cpp
parentgot rid of unnecessary _communicator member. (diff)
downloadice-59248eaddcbe2db56b655176f30278c5b6938b8e.tar.bz2
ice-59248eaddcbe2db56b655176f30278c5b6938b8e.tar.xz
ice-59248eaddcbe2db56b655176f30278c5b6938b8e.zip
Got rid of various unnecessary _communicator members.
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();
}