Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
class with virtual methods must have virtual destructor
  • Loading branch information
wwmayer committed Jul 15, 2016
1 parent d7240c6 commit 037cf48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/3rdParty/salomesmesh/inc/SMDS_Downward.hxx
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/3rdParty/salomesmesh/inc/SMESH_MeshAlgos.hxx
Expand Up @@ -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,
Expand Down

0 comments on commit 037cf48

Please sign in to comment.