Skip to content
Snippets Groups Projects
Commit ff57ee2d authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

Added (virtual) destructors to GMSH mesh density classes to avoid warnings.

parent 3293829d
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ public: ...@@ -25,6 +25,7 @@ public:
GMSHFixedMeshDensity(double mesh_density); GMSHFixedMeshDensity(double mesh_density);
void init(std::vector<GeoLib::Point const*> const& vec); void init(std::vector<GeoLib::Point const*> const& vec);
double getMeshDensityAtPoint(GeoLib::Point const*const) const; double getMeshDensityAtPoint(GeoLib::Point const*const) const;
virtual ~GMSHFixedMeshDensity() {};
private: private:
double _mesh_density; double _mesh_density;
......
...@@ -30,6 +30,7 @@ namespace FileIO ...@@ -30,6 +30,7 @@ namespace FileIO
class GMSHMeshDensityStrategy class GMSHMeshDensityStrategy
{ {
public: public:
virtual ~GMSHMeshDensityStrategy() {};
virtual void init(std::vector<GeoLib::Point const*> const&) = 0; virtual void init(std::vector<GeoLib::Point const*> const&) = 0;
virtual double getMeshDensityAtPoint(GeoLib::Point const*const) const = 0; virtual double getMeshDensityAtPoint(GeoLib::Point const*const) const = 0;
}; };
......
...@@ -22,6 +22,7 @@ namespace FileIO { ...@@ -22,6 +22,7 @@ namespace FileIO {
class GMSHNoMeshDensity: public FileIO::GMSHMeshDensityStrategy { class GMSHNoMeshDensity: public FileIO::GMSHMeshDensityStrategy {
public: public:
GMSHNoMeshDensity() {}; GMSHNoMeshDensity() {};
virtual ~GMSHNoMeshDensity() {};
void init(std::vector<GeoLib::Point const*> const& vec) void init(std::vector<GeoLib::Point const*> const& vec)
{ {
// to avoid a warning here: // to avoid a warning here:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment