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

index c7575020cc3219ee901ddb2dc1f98994a15120bb..792703b0e07fea5cf44bf725c0a6f2de1502998d 100644 (file)
@@ -97,9 +97,8 @@ CANRECPluginImpl_IOperations::MakeCanonicalRecognition
       return NULL;
     }
   }
-  catch ( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch ( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return NULL;
   }