1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -80,11 +80,11 @@ void ShapeUpgrade_ShapeDivide::Init(const TopoDS_Shape &S)
}
//=======================================================================
//function : Delete
//function : ~ShapeUpgrade_ShapeDivide
//purpose :
//=======================================================================
void ShapeUpgrade_ShapeDivide::Delete()
ShapeUpgrade_ShapeDivide::~ShapeUpgrade_ShapeDivide()
{}

View File

@@ -50,8 +50,7 @@ public:
//! Initialize by a Shape.
Standard_EXPORT void Init (const TopoDS_Shape& S);
Standard_EXPORT virtual void Delete();
Standard_EXPORT virtual ~ShapeUpgrade_ShapeDivide(){Delete();}
Standard_EXPORT virtual ~ShapeUpgrade_ShapeDivide();
//! Defines the spatial precision used for splitting
Standard_EXPORT void SetPrecision (const Standard_Real Prec);