class with virtual methods must have virtual destructor

This commit is contained in:
wmayer 2016-07-15 13:52:27 +02:00
parent d7240c6b2b
commit 037cf48cef
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public:
static int getCellDimension(unsigned char cellType);
protected:
SMDS_Downward(SMDS_UnstructuredGrid *grid, int nbDownCells);
~SMDS_Downward();
virtual ~SMDS_Downward();
int addCell(int vtkId = -1);
virtual void initCell(int cellId);
virtual void allocate(int nbElems) = 0;

View File

@ -53,6 +53,7 @@ class SMDS_Mesh;
struct SMESHUtils_EXPORT SMESH_NodeSearcher
{
virtual ~SMESH_NodeSearcher() {}
virtual const SMDS_MeshNode* FindClosestTo( const gp_Pnt& pnt ) = 0;
virtual void MoveNode( const SMDS_MeshNode* node, const gp_Pnt& toPnt ) = 0;
virtual int FindNearPoint(const gp_Pnt& point,