diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-11-02 07:13:04 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-11-02 07:13:04 +0000 |
commit | ef90f48326d00ec9fcb44bc43ac249e4617d7cb7 (patch) | |
tree | 52300a84c07910ff7f95f76d7b2820c1a4b59606 /TAO/tao/LocalObject.cpp | |
parent | 681f78f9142968f31054464967191979d51af69b (diff) | |
download | ATCD-ef90f48326d00ec9fcb44bc43ac249e4617d7cb7.tar.gz |
ChangeLogTag:Tue Nov 1 14:49:40 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/LocalObject.cpp')
-rw-r--r-- | TAO/tao/LocalObject.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/TAO/tao/LocalObject.cpp b/TAO/tao/LocalObject.cpp index 39d370f23be..903112f92cc 100644 --- a/TAO/tao/LocalObject.cpp +++ b/TAO/tao/LocalObject.cpp @@ -1,5 +1,3 @@ -// -*- C++ -*- -// // $Id$ #include "LocalObject.h" @@ -19,6 +17,8 @@ ACE_RCSID (tao, LocalObject, "$Id$") +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + CORBA::LocalObject::~LocalObject (void) { } @@ -42,12 +42,12 @@ CORBA::ULong CORBA::LocalObject::_hash (CORBA::ULong maximum ACE_ENV_ARG_DECL_NOT_USED) { - // Note that we reinterpret_cast to an "unsigned long" instead of + // Note that we reinterpret_cast to an "ptrdiff_t" instead of // CORBA::ULong since we need to first cast to an integer large // enough to hold an address to avoid compile-time warnings on some // 64-bit platforms. - const CORBA::ULong hash = + CORBA::ULong const hash = static_cast<CORBA::ULong> (reinterpret_cast<ptrdiff_t> (this)); return hash % maximum; @@ -220,6 +220,10 @@ CORBA::LocalObject::_get_orb (ACE_ENV_SINGLE_ARG_DECL) // **************************************************************** +TAO_Local_RefCounted_Object::~TAO_Local_RefCounted_Object (void) +{ +} + void TAO_Local_RefCounted_Object::_add_ref (void) { @@ -235,3 +239,4 @@ TAO_Local_RefCounted_Object::_remove_ref (void) delete this; } +TAO_END_VERSIONED_NAMESPACE_DECL |