From 06547ee8b2562b50bd8054f4977290f943084adb Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 25 Mar 2011 07:47:05 +0000 Subject: [PATCH] Get back Destroy() function, add notification that this function is obsolete. --- src/GenericObj/SALOME_GenericObj_i.cc | 5 +++++ src/GenericObj/SALOME_GenericObj_i.hh | 2 ++ 2 files changed, 7 insertions(+) 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(); }; }; -- 2.39.2