From: vsr Date: Thu, 16 Nov 2017 11:37:10 +0000 (+0300) Subject: Switch to standard C++ exception mechanism X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3894fff588503cc7214da14e985b70860074d17f;p=plugins%2Fcanrecplugin.git Switch to standard C++ exception mechanism --- diff --git a/src/CANRECPLUGINEngine/CANRECPluginImpl_IOperations.cxx b/src/CANRECPLUGINEngine/CANRECPluginImpl_IOperations.cxx index c757502..792703b 100644 --- a/src/CANRECPLUGINEngine/CANRECPluginImpl_IOperations.cxx +++ b/src/CANRECPLUGINEngine/CANRECPluginImpl_IOperations.cxx @@ -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; }