From 3c85aaf0dff7b3f70f16b8d471e954e94c242e93 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 13 May 2017 17:33:13 +0200 Subject: [PATCH] remove const from exception handler to fix build failure --- src/Tools/generateTemplates/templateClassPyExport.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Tools/generateTemplates/templateClassPyExport.py b/src/Tools/generateTemplates/templateClassPyExport.py index 345dc6a5c4..69a8b5f51d 100644 --- a/src/Tools/generateTemplates/templateClassPyExport.py +++ b/src/Tools/generateTemplates/templateClassPyExport.py @@ -492,7 +492,7 @@ PyObject * @self.export.Name@::staticCallback_@i.Name@ (PyObject *self, PyObject - return ret; } - catch(const Base::Exception& e) // catch the FreeCAD exceptions + catch(Base::Exception& e) // catch the FreeCAD exceptions { PyObject *edict = e.getPyObject(); @@ -682,7 +682,7 @@ PyObject *@self.export.Name@::_getattr(char *attr) // __getattr__ function: n if(r) return r; } #ifndef DONT_CATCH_CXX_EXCEPTIONS - catch(const Base::Exception& e) // catch the FreeCAD exceptions + catch(Base::Exception& e) // catch the FreeCAD exceptions { PyObject *edict = e.getPyObject(); @@ -712,7 +712,7 @@ PyObject *@self.export.Name@::_getattr(char *attr) // __getattr__ function: n return NULL; } #else // DONT_CATCH_CXX_EXCEPTIONS - catch(const Base::Exception& e) // catch the FreeCAD exceptions + catch(Base::Exception& e) // catch the FreeCAD exceptions { PyObject *edict = e.getPyObject(); @@ -755,7 +755,7 @@ int @self.export.Name@::_setattr(char *attr, PyObject *value) // __setattr__ fun return -1; } #ifndef DONT_CATCH_CXX_EXCEPTIONS - catch(const Base::Exception& e) // catch the FreeCAD exceptions + catch(Base::Exception& e) // catch the FreeCAD exceptions { PyObject *edict = e.getPyObject(); @@ -786,7 +786,7 @@ int @self.export.Name@::_setattr(char *attr, PyObject *value) // __setattr__ fun return -1; } #else // DONT_CATCH_CXX_EXCEPTIONS - catch(const Base::Exception& e) // catch the FreeCAD exceptions + catch(Base::Exception& e) // catch the FreeCAD exceptions { PyObject *edict = e.getPyObject();