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:
@@ -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;
|
||||
|
@@ -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.
|
||||
|
@@ -108,7 +108,7 @@ TopOpeBRep_EdgesIntersector::TopOpeBRep_EdgesIntersector()
|
||||
myselectkeep = Standard_True;
|
||||
}
|
||||
|
||||
void TopOpeBRep_EdgesIntersector::Delete()
|
||||
TopOpeBRep_EdgesIntersector::~TopOpeBRep_EdgesIntersector()
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user