Salome HOME
fight warnings, c++17. additional corrections++
[modules/smesh.git] / src / StdMeshers / StdMeshers_CompositeHexa_3D.cxx
index f537fb5f21f7df97bd7d31172d279475eb0ea834..91bdf9218e7084c443f5407a8882f7d40aa77f41 100644 (file)
@@ -1246,7 +1246,7 @@ bool _QuadFaceGrid::LoadGrid( SMESH_ProxyMesh& mesh )
     if ( fIt->next()->NbNodes() % 4 > 0 )
       return error("Non-quadrangular mesh faces are not allowed on sides of a composite block");
 
-  bool isProxy, isTmpElem;
+  bool isProxy = false, isTmpElem = false;
   if ( faceSubMesh && faceSubMesh->NbElements() > 0 )
   {
     isProxy   = dynamic_cast< const SMESH_ProxyMesh::SubMesh* >( faceSubMesh );
@@ -1662,7 +1662,7 @@ bool _QuadFaceGrid::GetNormal( const TopoDS_Vertex& v, gp_Vec& n ) const
         n = d1u.Crossed( d1v );
         return true;
       }
-      catch (Standard_Failure) {
+      catch (Standard_Failure&) {
         return false;
       }
     }