From fd8638832296a40ab02c05ac6beb1a40e2c8ee93 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 7 Apr 2005 12:29:49 +0000 Subject: [PATCH] Added virtual destructors --- src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx | 2 ++ src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx | 1 + src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx | 1 + src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx | 2 ++ src/SALOMEDSClient/SALOMEDSClient_SObject.hxx | 2 ++ src/SALOMEDSClient/SALOMEDSClient_Study.hxx | 1 + src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx | 2 ++ src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx | 1 + src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx | 1 + src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx | 2 ++ 10 files changed, 15 insertions(+) diff --git a/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx index e10274845..5cb0ee231 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx @@ -10,6 +10,8 @@ class SALOMEDSClient_ChildIterator { public: + virtual ~SALOMEDSClient_ChildIterator() {} + virtual void Init() = 0; virtual void InitEx(bool) = 0; virtual bool More() = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx b/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx index 467557d2a..1f25d5784 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx @@ -12,6 +12,7 @@ class SALOMEDSClient_GenericAttribute { public: + virtual ~SALOMEDSClient_GenericAttribute() {} virtual void CheckLocked() = 0; virtual std::string Type() = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx b/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx index a1b3bc7f6..a8f0c4915 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx @@ -11,6 +11,7 @@ class SALOMEDSClient_SComponent: public virtual SALOMEDSClient_SObject { public: + virtual ~SALOMEDSClient_SComponent() {} virtual std::string ComponentDataType() = 0; virtual bool ComponentIOR(std::string& theID) = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx index 661527ae5..bcba46c40 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx @@ -10,6 +10,8 @@ class SALOMEDSClient_SComponentIterator { public: + virtual ~SALOMEDSClient_SComponentIterator() {} + virtual void Init() = 0; virtual bool More() = 0; virtual void Next() = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx b/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx index 4206db304..d682b8395 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx @@ -16,6 +16,8 @@ class SALOMEDSClient_GenericAttribute; class SALOMEDSClient_SObject { public: + virtual ~SALOMEDSClient_SObject() {} + virtual std::string GetID() = 0; virtual SALOMEDSClient_SComponent* GetFatherComponent() = 0; virtual SALOMEDSClient_SObject* GetFather() = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx index da1a55807..0d83ca69f 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx @@ -20,6 +20,7 @@ class SALOMEDSClient_Study { public: + virtual ~SALOMEDSClient_Study() {} virtual std::string GetPersistentReference() = 0; virtual std::string GetTransientReference() = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx b/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx index 5741e9575..7c9026f0a 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx @@ -13,6 +13,8 @@ class SALOMEDSClient_StudyBuilder { public: + virtual ~SALOMEDSClient_StudyBuilder() {} + virtual SALOMEDSClient_SComponent* NewComponent(const std::string& ComponentDataType) = 0; virtual void DefineComponentInstance (SALOMEDSClient_SComponent*, const std::string& ComponentIOR) = 0; virtual void RemoveComponent(SALOMEDSClient_SComponent* theSCO) = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx b/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx index 41ba8080b..25c5403a5 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx @@ -13,6 +13,7 @@ class SALOMEDSClient_StudyManager { public: + virtual ~SALOMEDSClient_StudyManager() {} virtual SALOMEDSClient_Study* NewStudy(const std::string& study_name) = 0; virtual SALOMEDSClient_Study* Open(const std::string& theStudyUrl) = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx b/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx index 9d79cc9cb..81212d0e9 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx @@ -12,6 +12,7 @@ class SALOMEDSClient_UseCaseBuilder { public: + virtual ~SALOMEDSClient_UseCaseBuilder() {} virtual bool Append(SALOMEDSClient_SObject* theObject) = 0; virtual bool Remove(SALOMEDSClient_SObject* theObject) = 0; diff --git a/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx index 13496872f..d3c1df8b5 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx @@ -11,6 +11,8 @@ class SALOMEDSClient_UseCaseIterator { public: + virtual ~SALOMEDSClient_UseCaseIterator() {} + virtual void Init(bool) = 0; virtual bool More() = 0; virtual void Next() = 0; -- 2.39.2