summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/HelloI.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-06-26 02:32:46 +0000
committerMichi Henning <michi@zeroc.com>2003-06-26 02:32:46 +0000
commite855e98386a86e229285e02550f25c367a1ed249 (patch)
treefeeffed1b5d11f825b9625790469297930eea802 /cpp/demo/Ice/hello/HelloI.cpp
parentIncorrect property setting in config file. (diff)
downloadice-e855e98386a86e229285e02550f25c367a1ed249.tar.bz2
ice-e855e98386a86e229285e02550f25c367a1ed249.tar.xz
ice-e855e98386a86e229285e02550f25c367a1ed249.zip
got rid of unnecessary _communicator member.
Diffstat (limited to 'cpp/demo/Ice/hello/HelloI.cpp')
-rw-r--r--cpp/demo/Ice/hello/HelloI.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/demo/Ice/hello/HelloI.cpp b/cpp/demo/Ice/hello/HelloI.cpp
index bca3a588381..880603c5f46 100644
--- a/cpp/demo/Ice/hello/HelloI.cpp
+++ b/cpp/demo/Ice/hello/HelloI.cpp
@@ -17,11 +17,6 @@
using namespace std;
-HelloI::HelloI(const Ice::CommunicatorPtr& communicator) :
- _communicator(communicator)
-{
-}
-
void
HelloI::sayHello(const Ice::Current&) const
{
@@ -29,8 +24,8 @@ HelloI::sayHello(const Ice::Current&) const
}
void
-HelloI::shutdown(const Ice::Current&)
+HelloI::shutdown(const Ice::Current& c)
{
cout << "Shutting down..." << endl;
- _communicator->shutdown();
+ c.adapter->getCommunicator()->shutdown();
}