X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepLib%2FBRepLib.cxx;h=c763e2e762b0ea2cdb364ea26fd767d1ad6be6e0;hb=9775fa6110885e0afde1c68f4a078a0766cb5521;hpb=0c63f2f8b922bc36025a61eed81ca221fdeb37e4 diff --git a/src/BRepLib/BRepLib.cxx b/src/BRepLib/BRepLib.cxx index cba18bc391..c763e2e762 100644 --- a/src/BRepLib/BRepLib.cxx +++ b/src/BRepLib/BRepLib.cxx @@ -1959,12 +1959,13 @@ static void EncodeRegularity(const TopoDS_Shape& theShape, BRepLib::EncodeRegularity(E, F1, F2, theTolAng); } } - catch (Standard_Failure) { + catch (Standard_Failure const& anException) { #ifdef OCCT_DEBUG cout << "Warning: Exception in BRepLib::EncodeRegularity(): "; - Standard_Failure::Caught()->Print(cout); + anException.Print(cout); cout << endl; #endif + (void)anException; } }