Salome HOME
#18963 Minimize compiler warnings
[modules/geom.git] / src / ShHealOper / ShHealOper_FillHoles.cxx
index 6f026e8500e9dc1ab2a581bf917e662113d76193..dac0c895e2566939bd7812cef1f68bc930ce6e6f 100644 (file)
@@ -230,7 +230,7 @@ Standard_Boolean ShHealOper_FillHoles::prepareWires(const TopTools_SequenceOfSha
       if (!BRep_Tool::Degenerated (TopoDS::Edge (aExp.Current())))
         if(myEdgeFaces.Contains(aExp.Current()) && myEdgeFaces.FindFromKey(aExp.Current()).Extent() >1)
           continue;
-        aSeqEdges->Append(aExp.Current());
+      aSeqEdges->Append(aExp.Current()); // to do: mustn't this clause be within if(!BRep_Tool::Degenerated...)?
     }
   }
 
@@ -319,7 +319,7 @@ Handle(Geom_Surface) ShHealOper_FillHoles::buildSurface(const TopoDS_Wire& theWi
     theSenses    = aBuilder.Sense();
   }
 
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     aSurf.Nullify();
     return aSurf;
   }