diff options
author | Michi Henning <michi@zeroc.com> | 2003-06-26 02:32:46 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-06-26 02:32:46 +0000 |
commit | e855e98386a86e229285e02550f25c367a1ed249 (patch) | |
tree | feeffed1b5d11f825b9625790469297930eea802 /cpp/demo/Ice/hello/HelloI.cpp | |
parent | Incorrect property setting in config file. (diff) | |
download | ice-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.cpp | 9 |
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(); } |