X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Algo.hxx;h=d2cde332ee7f5358b14b5b08e86c99fbaa40ace2;hb=a48b932c49a7b088d5e1d9a0a2f8f31339e1ee15;hp=02c76d253efd2a5b109d6ad4bc50f897384ec130;hpb=82e34f118335786cb9dbabfaea8e8574e47081ce;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Algo.hxx b/src/SMESH/SMESH_Algo.hxx index 02c76d253..d2cde332e 100644 --- a/src/SMESH/SMESH_Algo.hxx +++ b/src/SMESH/SMESH_Algo.hxx @@ -31,6 +31,7 @@ #include "SMESH_Hypothesis.hxx" #include "SMESH_ComputeError.hxx" +#include "SMESH_Comment.hxx" #include #include @@ -50,7 +51,6 @@ class SMESHDS_Mesh; class SMDS_MeshNode; class SMESH_subMesh; class SMESH_MesherHelper; -class SMESH_Comment; class SMESH_Algo:public SMESH_Hypothesis @@ -277,9 +277,10 @@ protected: */ bool error(int error, const SMESH_Comment& comment = ""); /*! - * \brief To be used as error in previous method + * \brief store COMPERR_ALGO_FAILED error and comment and then return false */ - SMESH_ComputeErrorName dfltErr() const { return COMPERR_ALGO_FAILED; } + bool error(const SMESH_Comment& comment = "") + { return error(COMPERR_ALGO_FAILED, comment); } /*! * \brief store error and return error->IsOK() */