mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-17 20:24:12 +08:00
Coding - Reorganize code with constexpr #68
After rework Precision.hxx some local variables can be marked as constexpr
This commit is contained in:
@@ -138,7 +138,7 @@ static Standard_Boolean IsValidEdge(const TopoDS_Edge& theEdge,
|
||||
TopoDS_Vertex V1, V2;
|
||||
TopExp::Vertices(theEdge, V1, V2);
|
||||
|
||||
Standard_Real Tol = Precision::Confusion();
|
||||
constexpr Standard_Real Tol = Precision::Confusion();
|
||||
Standard_Integer i;
|
||||
|
||||
TopExp_Explorer Explo(theFace, TopAbs_EDGE);
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
static Standard_Real PreciseUpar(const Standard_Real anUpar,
|
||||
const Handle(Geom_BSplineSurface)& aSurface)
|
||||
{
|
||||
Standard_Real Tol = Precision::PConfusion();
|
||||
constexpr Standard_Real Tol = Precision::PConfusion();
|
||||
Standard_Integer i1, i2;
|
||||
|
||||
aSurface->LocateU(anUpar, Tol, i1, i2);
|
||||
|
||||
Reference in New Issue
Block a user