Changed all catch types to references for polymorphic exceptions.

This commit is contained in:
Markus Lampert
2018-07-30 10:28:54 -07:00
committed by wmayer
parent 1a6fd6b048
commit e13c09235f
53 changed files with 98 additions and 98 deletions

View File

@@ -107,7 +107,7 @@ TopoDS_Edge DrawingOutput::asCircle(const BRepAdaptor_Curve& c) const
center.ChangeCoord().Divide(3);
curv /= 3;
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
// if getting center of curvature fails, e.g.
// for straight lines it raises LProp_NotDefined
return TopoDS_Edge();
@@ -350,7 +350,7 @@ void SVGOutput::printBezier(const BRepAdaptor_Curve& c, int id, std::ostream& ou
str << "\" />";
out << str.str();
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
printGeneric(c, id, out);
}
}
@@ -417,7 +417,7 @@ void SVGOutput::printBSpline(const BRepAdaptor_Curve& c, int id, std::ostream& o
str << "\" />";
out << str.str();
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
printGeneric(c, id, out);
}
}
@@ -723,7 +723,7 @@ void DXFOutput::printBSpline(const BRepAdaptor_Curve& c, int id, std::ostream& o
//str << "\" />";
out << str.str();
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
printGeneric(c, id, out);
}
}