00001 #include "tao/ORB_Core_Auto_Ptr.h" 00002 #include "tao/ORB_Core.h" 00003 00004 #if !defined (__ACE_INLINE__) 00005 # include "tao/ORB_Core_Auto_Ptr.inl" 00006 #endif /* !__ACE_INLINE */ 00007 00008 ACE_RCSID (tao, 00009 ORB_Core_Auto_Ptr, 00010 "$Id: ORB_Core_Auto_Ptr.cpp 71473 2006-03-10 07:19:20Z jtc $") 00011 00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00013 00014 TAO_ORB_Core_Auto_Ptr::~TAO_ORB_Core_Auto_Ptr (void) 00015 { 00016 if (this->get () != 0) 00017 { 00018 this->get ()->_decr_refcnt (); 00019 } 00020 } 00021 00022 void 00023 TAO_ORB_Core_Auto_Ptr::reset (TAO_ORB_Core *p) 00024 { 00025 if (this->get () != p && this->get () != 0) 00026 { 00027 this->get ()->_decr_refcnt (); 00028 } 00029 00030 this->p_ = p; 00031 } 00032 00033 TAO_END_VERSIONED_NAMESPACE_DECL