X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_ExceptionHandler.cxx;h=4534dcf6bd5da930cbc2b0320635be9d40c7a6b5;hb=08434ce2731f6dc141a870b92a95aca0f8129398;hp=d23eb4b044681d7afd0167b49836e51573ec587a;hpb=c47605c13ccf37a7b3fcb9cb6c8baf38d3643f77;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx old mode 100755 new mode 100644 index d23eb4b04..4534dcf6b --- a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx +++ b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -24,7 +24,6 @@ #include "Utils_CorbaException.hxx" #include "CASCatch.hxx" -#include "Basics_OCCTVersion.hxx" #include @@ -33,12 +32,9 @@ #include -#if OCC_VERSION_LARGE > 0x06010000 - #include - #include -#else - #include "CASCatch.hxx" -#endif +#include +#include + /*!Constructor. Initialize by \a floatSignal.*/ SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler( const bool floatSignal ) @@ -57,19 +53,11 @@ SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler( const bool floatSignal ) /*!Try to call SUIT_ExceptionHandler::internalHandle(o, e), catch if failure.*/ bool SalomeApp_ExceptionHandler::handleSignals( QObject* o, QEvent* e ) { -#if OCC_VERSION_LARGE > 0x06010000 try { OCC_CATCH_SIGNALS; -#else - CASCatch_TRY { -#endif SUIT_ExceptionHandler::internalHandle( o, e ); } -#if OCC_VERSION_LARGE > 0x06010000 catch(Standard_Failure) { -#else - CASCatch_CATCH(Standard_Failure) { -#endif Handle(Standard_Failure) aFail = Standard_Failure::Caught(); throw Standard_Failure( aFail->GetMessageString() ); }