Remove catch block for plain C strings
LGTM complains about this construct leaking memory. Commit 227cf6de88 eliminated the parts of FreeCAD that throw those strings. This commit eliminates the catch block.
This commit is contained in:
@@ -482,10 +482,6 @@ BaseExport extern PyObject* BaseExceptionFreeCADAbort;
|
||||
{ \
|
||||
R; \
|
||||
} \
|
||||
catch(const char *e) \
|
||||
{ \
|
||||
_Py_Error(R,Base::BaseExceptionFreeCADError,e); \
|
||||
} \
|
||||
|
||||
#ifndef DONT_CATCH_CXX_EXCEPTIONS
|
||||
/// see docu of PY_TRY
|
||||
|
||||
Reference in New Issue
Block a user