]> SALOME platform Git repositories - plugins/dxfplugin.git/commitdiff
Salome HOME
Switch to standard C++ exception mechanism
authorvsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:37:24 +0000 (14:37 +0300)
committervsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:37:24 +0000 (14:37 +0300)
src/DXFPlugin_IOperations.cxx

index 52986e703f2dbf64a3431c647102142d205f852c..42c014b4eab60dde42e16a05dd1d790b9d093b80 100644 (file)
@@ -94,9 +94,8 @@ void DXFPlugin_IOperations::ExportDXF( const Handle(GEOM_Object)      theOrigina
       return;
     }
   }
-  catch( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return;
   }
 
@@ -150,9 +149,8 @@ DXFPlugin_IOperations::ImportDXF( const TCollection_AsciiString& theFileName )
     // Greate material groups.
     //MakeMaterialGroups( anImported, aSeq );
   }
-  catch( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return NULL;
   }