diff options
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; |