mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -246,7 +246,12 @@ void ProjLib_ProjectOnSurface::Load(const Handle(Adaptor3d_HCurve)& C,
|
||||
}
|
||||
}
|
||||
|
||||
void ProjLib_ProjectOnSurface::Delete()
|
||||
//=======================================================================
|
||||
//function : ~ProjLib_ProjectOnSurface
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
ProjLib_ProjectOnSurface::~ProjLib_ProjectOnSurface()
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -43,8 +43,7 @@ public:
|
||||
//! Create a projector normaly to the surface <S>.
|
||||
Standard_EXPORT ProjLib_ProjectOnSurface(const Handle(Adaptor3d_HSurface)& S);
|
||||
|
||||
Standard_EXPORT virtual void Delete();
|
||||
Standard_EXPORT virtual ~ProjLib_ProjectOnSurface(){Delete() ; }
|
||||
Standard_EXPORT virtual ~ProjLib_ProjectOnSurface();
|
||||
|
||||
//! Set the Surface to <S>.
|
||||
//! To compute the projection, you have to Load the Curve.
|
||||
|
Reference in New Issue
Block a user