mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
Coding - Reorganize code with constexpr #68
After rework Precision.hxx some local variables can be marked as constexpr
This commit is contained in:
@@ -822,7 +822,7 @@ static Standard_Boolean SameSurf(const Handle(Geom_Surface)& theS1, const Handle
|
||||
Standard_Real uf1, ul1, vf1, vl1, uf2, ul2, vf2, vl2;
|
||||
theS1->Bounds(uf1, ul1, vf1, vl1);
|
||||
theS2->Bounds(uf2, ul2, vf2, vl2);
|
||||
Standard_Real aPTol = Precision::PConfusion();
|
||||
constexpr Standard_Real aPTol = Precision::PConfusion();
|
||||
if (Precision::IsNegativeInfinite(uf1))
|
||||
{
|
||||
if (!Precision::IsNegativeInfinite(uf2))
|
||||
@@ -3843,7 +3843,7 @@ void ShapeUpgrade_UnifySameDomain::UnifyEdges()
|
||||
}
|
||||
|
||||
// fix changed faces and replace them in the local context
|
||||
Standard_Real aPrec = Precision::Confusion();
|
||||
constexpr Standard_Real aPrec = Precision::Confusion();
|
||||
for (Standard_Integer i = 1; i <= aChangedFaces.Extent(); i++) {
|
||||
TopoDS_Face aFace = TopoDS::Face(myContext->Apply(aChangedFaces.FindKey(i)));
|
||||
if (aFace.IsNull())
|
||||
|
Reference in New Issue
Block a user