Salome HOME
0023505: Sigsegv with fuse on cylinder and cone
[modules/geom.git] / src / VTKPlugin / VTKPlugin_IOperations.cxx
index ab8f79fb20c23b3fe44c17fe2280e6b84db5f3d4..22dd21d550a9bc32b96ad1029c921de85c9ac0b9 100644 (file)
@@ -95,9 +95,8 @@ void VTKPlugin_IOperations::ExportVTK( const Handle(GEOM_Object)      theOrigina
       return;
     }
   }
-  catch( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return;
   }