From e8d28b8ffb9f4e894e0db9d964fde25daa793bed Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Nov 2017 14:37:43 +0300 Subject: [PATCH] Switch to standard C++ exception mechanism --- src/XTPlugin_IOperations.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/XTPlugin_IOperations.cxx b/src/XTPlugin_IOperations.cxx index 04839db..8d6a7ac 100644 --- a/src/XTPlugin_IOperations.cxx +++ b/src/XTPlugin_IOperations.cxx @@ -95,9 +95,8 @@ XTPlugin_IOperations::ImportXT( 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; } -- 2.39.2