From: vsr Date: Fri, 25 Mar 2011 07:47:05 +0000 (+0000) Subject: Get back Destroy() function, add notification that this function is obsolete. X-Git-Tag: Start_BR_19998_21191~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06547ee8b2562b50bd8054f4977290f943084adb;p=modules%2Fkernel.git Get back Destroy() function, add notification that this function is obsolete. --- diff --git a/src/GenericObj/SALOME_GenericObj_i.cc b/src/GenericObj/SALOME_GenericObj_i.cc index 0f0ad93ba..a890372e5 100644 --- a/src/GenericObj/SALOME_GenericObj_i.cc +++ b/src/GenericObj/SALOME_GenericObj_i.cc @@ -72,3 +72,8 @@ void GenericObj_i::UnRegister(){ _remove_ref(); } } + +void GenericObj_i::Destroy(){ + MESSAGE("WARNING SALOME::GenericObj::Destroy() function is obsolete! Use UnRegister() instead."); + UnRegister(); +} diff --git a/src/GenericObj/SALOME_GenericObj_i.hh b/src/GenericObj/SALOME_GenericObj_i.hh index 6d7657726..e29ba3855 100644 --- a/src/GenericObj/SALOME_GenericObj_i.hh +++ b/src/GenericObj/SALOME_GenericObj_i.hh @@ -65,6 +65,8 @@ namespace SALOME{ virtual void Register(); /*! Decrease the reference count (release by another object).*/ virtual void UnRegister(); + /*! \brief Obsolete, left for compatibility reasons only. Use UnRegister() instead.*/ + virtual void Destroy(); }; };