X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Distribution.cxx;h=51907cd9de1ec41c1828ea05a19acb62120055d8;hb=665d037f93371114bf4b00bf11b0f95be418fb77;hp=aeef4e1ef465976cbb1f543d415ea3311f66b796;hpb=70c33e5f83059e589c93b7818348e3c003eaec4d;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_Distribution.cxx b/src/StdMeshers/StdMeshers_Distribution.cxx index aeef4e1ef..51907cd9d 100644 --- a/src/StdMeshers/StdMeshers_Distribution.cxx +++ b/src/StdMeshers/StdMeshers_Distribution.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -20,7 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH StdMeshers : implementaion of point distribution algorithm +// SMESH StdMeshers : implementation of point distribution algorithm // File : StdMeshers_Distribution.cxx // Author : Alexandre SOLOVYOV // Module : SMESH @@ -55,7 +55,7 @@ bool Function::value( const double, double& f ) const try { OCC_CATCH_SIGNALS; f = pow( 10., f ); - } catch(Standard_Failure) { + } catch(Standard_Failure&) { f = 0.0; ok = false; } @@ -185,7 +185,7 @@ FunctionExpr::FunctionExpr( const char* str, const int conv ) OCC_CATCH_SIGNALS; myExpr = ExprIntrp_GenExp::Create(); myExpr->Process( ( Standard_CString )str ); - } catch(Standard_Failure) { + } catch(Standard_Failure&) { ok = false; } @@ -217,7 +217,7 @@ bool FunctionExpr::value( const double t, double& f ) const try { OCC_CATCH_SIGNALS; f = myExpr->Expression()->Evaluate( myVars, myValues ); - } catch(Standard_Failure) { + } catch(Standard_Failure&) { f = 0.0; ok = false; } @@ -235,7 +235,7 @@ double FunctionExpr::integral( const double a, const double b ) const ( *static_cast( const_cast (this) ), a, b, 20 ); if( _int.IsDone() ) res = _int.Value(); - } catch(Standard_Failure) { + } catch(Standard_Failure&) { res = 0.0; MESSAGE( "Exception in integral calculating" ); }