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:
@@ -771,11 +771,11 @@ BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer(const TopoDS_Shape& S)
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Delete
|
||||
//purpose :
|
||||
//function : ~BRepClass3d_SolidExplorer
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepClass3d_SolidExplorer::Delete()
|
||||
BRepClass3d_SolidExplorer::~BRepClass3d_SolidExplorer()
|
||||
{
|
||||
Destroy() ;
|
||||
}
|
||||
|
@@ -56,8 +56,7 @@ public:
|
||||
|
||||
Standard_EXPORT BRepClass3d_SolidExplorer(const TopoDS_Shape& S);
|
||||
|
||||
Standard_EXPORT virtual void Delete();
|
||||
Standard_EXPORT virtual ~BRepClass3d_SolidExplorer(){Destroy() ; }
|
||||
Standard_EXPORT virtual ~BRepClass3d_SolidExplorer();
|
||||
|
||||
Standard_EXPORT void InitShape (const TopoDS_Shape& S);
|
||||
|
||||
|
Reference in New Issue
Block a user