Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Refcounted_ObjectKey.inl
blob2b8449f3ec02508266b1eb5eb307aa3f3f9cb760
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE void
5 TAO::Refcounted_ObjectKey::incr_refcount ()
7   ++this->refcount_;
10 ACE_INLINE const TAO::ObjectKey &
11 TAO::Refcounted_ObjectKey::object_key () const
13   return this->object_key_;
16 ACE_INLINE CORBA::ULong
17 TAO::Refcounted_ObjectKey::decr_refcount ()
19   if (--this->refcount_ > 0)
20     {
21       return this->refcount_;
22     }
24   ACE_ASSERT (this->refcount_ == 0);
26   delete this;
28   return 0;
32 TAO_END_VERSIONED_NAMESPACE_DECL