Changed all catch types to references for polymorphic exceptions.
This commit is contained in:
@@ -176,7 +176,7 @@ void SpherePy::setAxis(Py::Object arg)
|
||||
axis.SetDirection(gp_Dir(dir_x, dir_y, dir_z));
|
||||
this_surf->SetAxis(axis);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure&) {
|
||||
throw Py::RuntimeError("cannot set axis");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user