mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024023: Revamp the OCCT Handle - gcc and clang
Adaptations for compiling with GCC 4.7 and 4.8: - Construction semantics is used for Handle objects being initialized by const Handle objects of derived type, to avoid overload resolution error in GCC 4.7. - Missing includes added. - Fixed bugs related to misuse of direct casts of handle. - Eliminate CLang warnings on uninitialized and unused variables, functions, and expressions
This commit is contained in:
@@ -821,8 +821,8 @@ Standard_Real IntTools_FaceFace::ComputeTolerance()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
return aDMax;
|
||||
}
|
||||
@@ -2178,30 +2178,6 @@ Standard_Real IntTools_FaceFace::ComputeTolerance()
|
||||
|
||||
case IntPatch_Restriction:
|
||||
{
|
||||
GeomAbs_SurfaceType typS1 = myHS1->Surface().GetType();
|
||||
GeomAbs_SurfaceType typS2 = myHS2->Surface().GetType();
|
||||
Standard_Boolean isAnalS1 = Standard_False;
|
||||
switch (typS1)
|
||||
{
|
||||
case GeomAbs_Plane:
|
||||
case GeomAbs_Cylinder:
|
||||
case GeomAbs_Sphere:
|
||||
case GeomAbs_Cone:
|
||||
case GeomAbs_Torus: isAnalS1 = Standard_True; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
Standard_Integer isAnalS2 = Standard_False;
|
||||
switch (typS2)
|
||||
{
|
||||
case GeomAbs_Plane:
|
||||
case GeomAbs_Cylinder:
|
||||
case GeomAbs_Sphere:
|
||||
case GeomAbs_Cone:
|
||||
case GeomAbs_Torus: isAnalS2 = Standard_True; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
Handle(IntPatch_RLine) RL =
|
||||
Handle(IntPatch_RLine)::DownCast(L);
|
||||
Handle(Geom_Curve) aC3d;
|
||||
|
Reference in New Issue
Block a user