Changed all catch types to references for polymorphic exceptions.
This commit is contained in:
@@ -368,7 +368,7 @@ std::vector<TopoDS_Edge> DrawProjectSplit::split1Edge(TopoDS_Edge e, std::vector
|
||||
result.push_back(e1);
|
||||
}
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure&) {
|
||||
Base::Console().Message("LOG - DPS::split1Edge failed building edge segment\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ std::string DrawViewSpreadsheet::getSheetImage(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (std::exception) {
|
||||
} catch (std::exception&) {
|
||||
Base::Console().Error("Invalid cell range for %s\n",getNameInDocument());
|
||||
return result.str();
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ BaseGeom* BaseGeom::baseFactory(TopoDS_Edge edge)
|
||||
}
|
||||
break;
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure&) {
|
||||
if (bspline != nullptr) {
|
||||
delete bspline;
|
||||
bspline = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user