Changed all catch types to references for polymorphic exceptions.

This commit is contained in:
Markus Lampert
2018-08-08 15:45:30 +02:00
committed by wmayer
parent 1cbd5cc994
commit 0b40519f3f
53 changed files with 98 additions and 98 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ int TopoShapeSolidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
}
}
catch (Standard_Failure err) {
catch (Standard_Failure& err) {
std::stringstream errmsg;
errmsg << "Creation of solid failed: " << err.GetMessageString();
PyErr_SetString(PartExceptionOCCError, errmsg.str().c_str());