]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0023505: Sigsegv with fuse on cylinder and cone vsr/23505 V8_4_0 V8_4_0rc3 V8_4_0rc4
authorvsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:41:29 +0000 (14:41 +0300)
committervsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:41:29 +0000 (14:41 +0300)
- Switch to C++ exception handling mechanism

src/SalomeApp/SalomeApp_ExceptionHandler.cxx

index 0dfcba7e2c8f5f7ff8c85dea7a63a14cd43863fe..36534eee57ce1d151cae817deb0c3fd82a57c3c1 100644 (file)
@@ -23,8 +23,6 @@
 #include "SalomeApp_ExceptionHandler.h"
 #include "Utils_CorbaException.hxx"
 
-#include "CASCatch.hxx"
-
 #include <OSD.hxx>
 
 #include <stdexcept>
@@ -55,13 +53,14 @@ bool SalomeApp_ExceptionHandler::handleSignals( QObject* o, QEvent* e )
 {
   bool result = true;
 
-  try {
+  try
+  {
     OCC_CATCH_SIGNALS;
     result = SUIT_ExceptionHandler::internalHandle( o, e );
   }
-  catch(Standard_Failure) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    throw Standard_Failure( aFail->GetMessageString() );
+  catch( Standard_Failure& e )
+  {
+    throw Standard_Failure( e.GetMessageString() );
   }
 
   return result;