From: vsr Date: Thu, 16 Nov 2017 11:36:41 +0000 (+0300) Subject: Switch to standard C++ exception mechanism X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f2713f4429ffaf423a0f4c880459167b9c569a4;p=plugins%2Facisplugin.git Switch to standard C++ exception mechanism --- diff --git a/src/ACISPlugin_IOperations.cxx b/src/ACISPlugin_IOperations.cxx index 073f58e..4ae1044 100644 --- a/src/ACISPlugin_IOperations.cxx +++ b/src/ACISPlugin_IOperations.cxx @@ -94,9 +94,8 @@ void ACISPlugin_IOperations::ExportACIS( const Handle(GEOM_Object) theOrigi 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 @@ ACISPlugin_IOperations::ImportACIS( 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; }