Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update shebang to python3
[modules/gui.git]
/
src
/
SalomeApp
/
SalomeApp_ExceptionHandler.cxx
diff --git
a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx
b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx
old mode 100755
(executable)
new mode 100644
(file)
index
d23eb4b
..
4534dcf
--- a/
src/SalomeApp/SalomeApp_ExceptionHandler.cxx
+++ b/
src/SalomeApp/SalomeApp_ExceptionHandler.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
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
//
// 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 "Utils_CorbaException.hxx"
#include "CASCatch.hxx"
-#include "Basics_OCCTVersion.hxx"
#include <OSD.hxx>
#include <OSD.hxx>
@@
-33,12
+32,9
@@
#include <QString>
#include <QString>
-#if OCC_VERSION_LARGE > 0x06010000
- #include <Standard_ErrorHandler.hxx>
- #include <Standard_Failure.hxx>
-#else
- #include "CASCatch.hxx"
-#endif
+#include <Standard_ErrorHandler.hxx>
+#include <Standard_Failure.hxx>
+
/*!Constructor. Initialize by \a floatSignal.*/
SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler( const bool floatSignal )
/*!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 )
{
/*!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;
try {
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
-#endif
SUIT_ExceptionHandler::internalHandle( o, e );
}
SUIT_ExceptionHandler::internalHandle( o, e );
}
-#if OCC_VERSION_LARGE > 0x06010000
catch(Standard_Failure) {
catch(Standard_Failure) {
-#else
- CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
throw Standard_Failure( aFail->GetMessageString() );
}
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
throw Standard_Failure( aFail->GetMessageString() );
}