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

@@ -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");
}
}

View File

@@ -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();
}

View File

@@ -241,7 +241,7 @@ BaseGeom* BaseGeom::baseFactory(TopoDS_Edge edge)
}
break;
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
if (bspline != nullptr) {
delete bspline;
bspline = nullptr;