Salome HOME
[EDF30062] : Forward of current directory mecanism
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_Callback.hxx
index e0cb0ee0922aaf502a0714267b70441fbe4b089a..f3d4330ad1457739676f9822775b377275d6cec4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -36,6 +36,7 @@ private:
   SALOMEDSImpl_UseCaseBuilder* _builder;
 
 public:
+  virtual ~SALOMEDSImpl_Callback() {}
 
   SALOMEDSImpl_Callback(SALOMEDSImpl_UseCaseBuilder* builder) 
   {
@@ -57,11 +58,12 @@ public:
 class SALOMEDSIMPL_EXPORT SALOMEDSImpl_AbstractCallback
 {
 public:
-  virtual bool addSO_Notification(const SALOMEDSImpl_SObject& theSObject){return false;};
-  virtual bool removeSO_Notification(const SALOMEDSImpl_SObject& theSObject){return false;};
-  virtual bool modifySO_Notification(const SALOMEDSImpl_SObject& theSObject, int reason ){return false;};
-  virtual bool modifyNB_Notification(const char* theVarName){return false;};
-  virtual void RegisterGenObj  (const std::string& theIOR) {}
-  virtual void UnRegisterGenObj(const std::string& theIOR) {}
+  virtual ~SALOMEDSImpl_AbstractCallback() {}
+  virtual bool addSO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/){return false;}
+  virtual bool removeSO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/){return false;}
+  virtual bool modifySO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/, int /*reason*/ ){return false;}
+  virtual bool modifyNB_Notification(const char* /*theVarName*/){return false;}
+  virtual void RegisterGenObj  (const std::string& /*theIOR*/) {}
+  virtual void UnRegisterGenObj(const std::string& /*theIOR*/) {}
 };
 #endif