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

0025571: Avoid base Classes without virtual Destructors

Destructors of collection classes from NCollection and math_Function are made virtual to allow safe destruction by pointer to base class.

Destructors of classes HatchGen_IntersectionPoint, IntCurveSurface_Intersection, Intf_Interference, IntRes2d_Intersection are made protected to avoid possibility of destructing by pointer to corresponding base class.
This commit is contained in:
abv
2015-09-21 16:38:01 +03:00
committed by kgv
parent e2ba9cb12a
commit 6928e35131
17 changed files with 37 additions and 63 deletions

View File

@@ -68,15 +68,14 @@ public:
//! Dump all the fields.
Standard_EXPORT void Dump() const;
protected:
//! Empty Constructor;
Standard_EXPORT IntCurveSurface_Intersection();
//! Destructor is protected, for safe inheritance
~IntCurveSurface_Intersection() {}
//! Internal method
//! copy the <Inter> fields to <me>
Standard_EXPORT void SetValues (const IntCurveSurface_Intersection& Inter);