diff options
author | Marc Laukien <marc@zeroc.com> | 2005-04-19 01:31:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2005-04-19 01:31:27 +0000 |
commit | 6bea1b4be1255d34e83482ee27bf9693b73e914e (patch) | |
tree | 7357f4c89002aac02220337dcce8a6fc13d556a3 /cpp/demo/Ice/session/SessionI.cpp | |
parent | Removed illegal assert from finalizer. (diff) | |
download | ice-6bea1b4be1255d34e83482ee27bf9693b73e914e.tar.bz2 ice-6bea1b4be1255d34e83482ee27bf9693b73e914e.tar.xz ice-6bea1b4be1255d34e83482ee27bf9693b73e914e.zip |
fixes
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.cpp')
-rwxr-xr-x | cpp/demo/Ice/session/SessionI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Ice/session/SessionI.cpp b/cpp/demo/Ice/session/SessionI.cpp index add61597ff2..e3dc2c4937d 100755 --- a/cpp/demo/Ice/session/SessionI.cpp +++ b/cpp/demo/Ice/session/SessionI.cpp @@ -13,9 +13,6 @@ using namespace std; using namespace Demo; -// XXX Add using namespace Ice. -// Style: the other demos do not use namespace Ice. - class HelloI : public Hello { public: @@ -25,7 +22,7 @@ public: { } - ~HelloI() + virtual ~HelloI() { cout << "Hello object #" << _id << " destroyed" << endl; } @@ -45,6 +42,7 @@ HelloPrx SessionI::createHello(const Ice::Current& c) { Lock sync(*this); + // XXX Check for destruction missing. HelloPrx hello = HelloPrx::uncheckedCast(c.adapter->addWithUUID(new HelloI(_nextId++))); _objs.push_back(hello); return hello; @@ -54,6 +52,7 @@ void SessionI::refresh(const Ice::Current& c) { Lock sync(*this); + // XXX Check for destruction missing. _timestamp = IceUtil::Time::now(); } @@ -61,6 +60,7 @@ void SessionI::destroy(const Ice::Current& c) { Lock sync(*this); + // XXX Check for destruction missing. _destroy = true; cout << "The session #" << Ice::identityToString(c.id) << " is now destroyed." << endl; |