diff options
Diffstat (limited to 'TAO/tao/LocalObject.cpp')
-rw-r--r-- | TAO/tao/LocalObject.cpp | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/TAO/tao/LocalObject.cpp b/TAO/tao/LocalObject.cpp index 39d370f23be..9a7368f9ec4 100644 --- a/TAO/tao/LocalObject.cpp +++ b/TAO/tao/LocalObject.cpp @@ -1,16 +1,14 @@ -// -*- C++ -*- -// // $Id$ -#include "LocalObject.h" +#include "tao/LocalObject.h" #if !defined (__ACE_INLINE__) -# include "LocalObject.i" +# include "tao/LocalObject.i" #endif /* ! __ACE_INLINE__ */ -#include "SystemException.h" -#include "debug.h" -#include "ORB_Constants.h" +#include "tao/SystemException.h" +#include "tao/debug.h" +#include "tao/ORB_Constants.h" #include "ace/Log_Msg.h" #include "ace/Guard_T.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; @@ -64,7 +64,7 @@ CORBA::LocalObject::_is_equivalent (CORBA::Object_ptr other_obj ACE_ENV_ARG_DECL_NOT_USED) ACE_THROW_SPEC (()) { - return (other_obj == this) ? 1 : 0; + return (other_obj == this) ? true : false; } // TAO's extensions @@ -90,7 +90,7 @@ CORBA::Boolean CORBA::LocalObject::_non_existent (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) { // Always return false. - return 0; + return false; } void @@ -205,7 +205,7 @@ CORBA::LocalObject::_validate_connection (CORBA::PolicyList_out { ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (CORBA::OMGVMCID | 8, CORBA::COMPLETED_NO), - 0); + false); } #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ @@ -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 |