]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Get back Destroy() function, add notification that this function is obsolete.
authorvsr <vsr@opencascade.com>
Fri, 25 Mar 2011 07:47:05 +0000 (07:47 +0000)
committervsr <vsr@opencascade.com>
Fri, 25 Mar 2011 07:47:05 +0000 (07:47 +0000)
src/GenericObj/SALOME_GenericObj_i.cc
src/GenericObj/SALOME_GenericObj_i.hh

index 0f0ad93ba3d337ba9bab03dc5bbf129abdf704ed..a890372e5b9b9a85dfddb800a7ad29277ecf04f9 100644 (file)
@@ -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();
+}
index 6d7657726b425d853bd7c22ba0645a15fba0c946..e29ba3855f76b22177741f73af57b49308a49066 100644 (file)
@@ -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();
   };
 };