mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -216,7 +216,7 @@ void Geom_OffsetSurface::SetBasisSurface (const Handle(Geom_Surface)& S,
|
||||
// et la mettre en champ, on pourrait utiliser par exemple pour l'extraction d'iso
|
||||
// et aussi pour les singularite. Pour les surfaces osculatrices, on l'utilise pour
|
||||
// detecter si une iso est degeneree.
|
||||
const Standard_Real Tol = Precision::Confusion(); //0.0001;
|
||||
constexpr Standard_Real Tol = Precision::Confusion(); //0.0001;
|
||||
myOscSurf = new Geom_OsculatingSurface(aCheckingSurf, Tol);
|
||||
}
|
||||
|
||||
@@ -802,7 +802,7 @@ Handle(Geom_Surface) Geom_OffsetSurface::Surface() const
|
||||
{
|
||||
if (offsetValue == 0.0) return basisSurf; // Cas direct
|
||||
|
||||
Standard_Real Tol = Precision::Confusion();
|
||||
constexpr Standard_Real Tol = Precision::Confusion();
|
||||
Handle(Geom_Surface) Result, Base;
|
||||
Result.Nullify();
|
||||
Handle(Standard_Type) TheType = basisSurf->DynamicType();
|
||||
|
Reference in New Issue
Block a user