Salome HOME
Increment version: 8.5.0
[plugins/xtplugin.git] / src / XTPlugin_IOperations.cxx
index b7bc97f7b38f9680f8c2b4ce6160cd90a42d7dc4..8d6a7acee24428205bdeaeafe7b143d347ab3403 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2015  OPEN CASCADE
+// Copyright (C) 2014-2016  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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;
   }