0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_makefaces.cxx
index fb7fc38..16181a6 100644 (file)
@@ -207,7 +207,7 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
     
     const TopoDS_Face& FA = TopoDS::Face(FF);
     Standard_Boolean puok = TopOpeBRepTool::PurgeClosingEdges(FA,LOF,MWisOld,MshNOK);
-    if (!puok) Standard_Failure::Raise("TopOpeBRepBuild::GWESMakeFaces");
+    if (!puok) throw Standard_Failure("TopOpeBRepBuild::GWESMakeFaces");
     topurge = !MshNOK.IsEmpty();
 
 #ifdef OCCT_DEBUG
@@ -218,7 +218,7 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
   if (topurge) {
     TopTools_ListOfShape LOFF;
     Standard_Boolean puok = TopOpeBRepTool::MakeFaces(TopoDS::Face(FF),LOF,MshNOK,LOFF);
-    if (!puok) Standard_Failure::Raise("TopOpeBRepBuild::GWESMakeFaces");
+    if (!puok) throw Standard_Failure("TopOpeBRepBuild::GWESMakeFaces");
     LOF.Clear(); LOF.Assign(LOFF);
   }
 
@@ -422,7 +422,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
                      Standard_Real f2,l2,tolpc; Handle(Geom2d_Curve) C2D;                                              // jyl980402+
                      //C2D = FC2D_CurveOnSurface(newEdge,newFace,f2,l2,tolpc);                                         // jyl980402+
                      C2D = FC2D_CurveOnSurface(newEdge,newFace,f2,l2,tolpc, Standard_True);                            // xpu051198 (CTS21701)
-                     if(C2D.IsNull()) Standard_ProgramError::Raise("TopOpeBRepBuild_Builder::GFABUMakeFaces null PC"); // jyl980402+
+                     if(C2D.IsNull()) throw Standard_ProgramError("TopOpeBRepBuild_Builder::GFABUMakeFaces null PC"); // jyl980402+
                      Standard_Real tol = Max(tolE,tolpc);                                                              // jyl980402+
                      BRep_Builder BB_PC; BB_PC.UpdateEdge(newEdge,C2D,newFace,tol);                                    // jyl980402+
                    }                                                                                                   // jyl980402+