diff --git a/src/StdMeshers/StdMeshers_NumberOfSegments.hxx b/src/StdMeshers/StdMeshers_NumberOfSegments.hxx index 79147e1a2..5ae8dc918 100644 --- a/src/StdMeshers/StdMeshers_NumberOfSegments.hxx +++ b/src/StdMeshers/StdMeshers_NumberOfSegments.hxx @@ -45,7 +45,7 @@ public: int GetNumberOfSegments() const; - void SetScaleFactor(double scaleFactor) + virtual void SetScaleFactor(double scaleFactor) throw (SALOME_Exception); double GetScaleFactor() const; diff --git a/src/StdMeshers/StdMeshers_Regular_1D.hxx b/src/StdMeshers/StdMeshers_Regular_1D.hxx index 96128d984..b9d61432b 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.hxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.hxx @@ -58,9 +58,9 @@ public: protected: - bool computeInternalParameters (const TopoDS_Edge& theEdge, - std::list< double > & theParameters, - const bool theReverse) const; + virtual bool computeInternalParameters (const TopoDS_Edge& theEdge, + std::list< double > & theParameters, + const bool theReverse) const; enum HypothesisType { LOCAL_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, NONE };