Salome HOME
fight warnings, c++17. additional corrections++
[modules/smesh.git] / src / StdMeshers / StdMeshers_NumberOfSegments.cxx
index 1dfa663e70ffba5730aa3ae76dac2cf0539d45e5..08f1210b95afdf341dde29e47aba0f5bf0d90ca2 100644 (file)
@@ -226,7 +226,7 @@ void StdMeshers_NumberOfSegments::SetTableFunction(const vector<double>& table)
         OCC_CATCH_SIGNALS;
         val = pow( 10.0, val );
       }
-      catch(Standard_Failure) {
+      catch(Standard_Failure&) {
         throw SALOME_Exception( LOCALIZED( "invalid value"));
         return;
       }
@@ -319,7 +319,7 @@ bool process( const TCollection_AsciiString& str, int convMode,
     OCC_CATCH_SIGNALS;
     myExpr = ExprIntrp_GenExp::Create();
     myExpr->Process( str.ToCString() );
-  } catch(Standard_Failure) {
+  } catch(Standard_Failure&) {
     parsed_ok = false;
   }