mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
Coding - Resolving C26498 warning
C26498 - marking variables constexpr to improve performance
This commit is contained in:
@@ -720,7 +720,7 @@ static Standard_Boolean IsSegmentOut(Standard_Real x1,Standard_Real y1,
|
||||
Standard_Real xs1,Standard_Real ys1,
|
||||
Standard_Real xs2,Standard_Real ys2)
|
||||
{
|
||||
Standard_Real eps = RealSmall();
|
||||
constexpr Standard_Real eps = RealSmall();
|
||||
Standard_Real xsmin = Min (xs1, xs2);
|
||||
Standard_Real xsmax = Max (xs1, xs2);
|
||||
Standard_Real ysmin = Min (ys1, ys2);
|
||||
@@ -765,7 +765,7 @@ Standard_Boolean Bnd_Box::IsOut(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Dir
|
||||
if (IsWhole()) return Standard_False;
|
||||
else if (IsVoid()) return Standard_True;
|
||||
|
||||
Standard_Real eps = RealSmall();
|
||||
constexpr Standard_Real eps = RealSmall();
|
||||
Standard_Real myXmin, myYmin, myZmin, myXmax, myYmax, myZmax;
|
||||
Get (myXmin, myYmin, myZmin, myXmax, myYmax, myZmax);
|
||||
|
||||
|
Reference in New Issue
Block a user