Changed all catch types to references for polymorphic exceptions.
This commit is contained in:
@@ -348,7 +348,7 @@ PyObject* TopoShapeWirePy::approximate(PyObject *args)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure&) {
|
||||
PyErr_SetString(PartExceptionOCCError, "failed to approximate wire");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user