Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided with OCCT 7.0. See https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form and https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019 for why this is necessary for OCCT >= 7.1
This commit is contained in:
@@ -84,7 +84,7 @@ Py::String AttachEnginePy::getAttacherType(void) const
|
||||
*/
|
||||
#define ATTACHERPY_STDCATCH_ATTR \
|
||||
catch (Standard_Failure) {\
|
||||
Handle_Standard_Failure e = Standard_Failure::Caught();\
|
||||
Handle(Standard_Failure) e = Standard_Failure::Caught();\
|
||||
throw Py::Exception(Part::PartExceptionOCCError, e->GetMessageString());\
|
||||
} catch (Base::Exception &e) {\
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError, e.what());\
|
||||
@@ -225,7 +225,7 @@ Py::List AttachEnginePy::getImplementedModes(void) const
|
||||
*/
|
||||
#define ATTACHERPY_STDCATCH_METH \
|
||||
catch (Standard_Failure) {\
|
||||
Handle_Standard_Failure e = Standard_Failure::Caught();\
|
||||
Handle(Standard_Failure) e = Standard_Failure::Caught();\
|
||||
PyErr_SetString(Part::PartExceptionOCCError, e->GetMessageString());\
|
||||
return NULL;\
|
||||
} catch (Base::Exception &e) {\
|
||||
|
||||
Reference in New Issue
Block a user