1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027067: Avoid use of virtual methods for implementation of destructors in legacy classes

Redundant methods Delete() and Desroy(), created in CDL as a hack to define destructor for the class, are removed; their definitions are converted to definition of destructors. In a couple of places methods Destroy() are preserved (bug made non-virtual) because they are called explicitly.
This commit is contained in:
abv
2016-01-03 07:11:46 +03:00
parent 18f7c9a5c2
commit e6f550da99
116 changed files with 150 additions and 467 deletions

View File

@@ -100,10 +100,10 @@ TopOpeBRep_DSFiller::TopOpeBRep_DSFiller()
//modified by NIZNHY-PKV Mon Dec 16 11:12:38 2002 f
//=======================================================================
//function : Destroy
//purpose : alias ~TopOpeBRep_DSFiller
//function : ~TopOpeBRep_DSFiller
//purpose :
//=======================================================================
void TopOpeBRep_DSFiller::Destroy()
TopOpeBRep_DSFiller::~TopOpeBRep_DSFiller()
{
if (myPShapeClassifier) {
delete myPShapeClassifier;

View File

@@ -58,8 +58,7 @@ public:
Standard_EXPORT TopOpeBRep_DSFiller();
Standard_EXPORT void Destroy();
Standard_EXPORT ~TopOpeBRep_DSFiller() {Destroy();}
Standard_EXPORT ~TopOpeBRep_DSFiller();
//! return field myPShapeClassifier.
//! set field myPShapeClassifier.

View File

@@ -108,7 +108,7 @@ TopOpeBRep_EdgesIntersector::TopOpeBRep_EdgesIntersector()
myselectkeep = Standard_True;
}
void TopOpeBRep_EdgesIntersector::Delete()
TopOpeBRep_EdgesIntersector::~TopOpeBRep_EdgesIntersector()
{}
//=======================================================================

View File

@@ -60,8 +60,7 @@ public:
Standard_EXPORT TopOpeBRep_EdgesIntersector();
Standard_EXPORT virtual void Delete();
Standard_EXPORT virtual ~TopOpeBRep_EdgesIntersector(){Delete() ; }
Standard_EXPORT virtual ~TopOpeBRep_EdgesIntersector();
Standard_EXPORT void SetFaces (const TopoDS_Shape& F1, const TopoDS_Shape& F2);