mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -189,9 +189,9 @@ static void GetLinePoint2d (const Handle(IntPatch_Line)& L,
|
||||
const Standard_Boolean OnFirst,
|
||||
Standard_Real& U, Standard_Real& V)
|
||||
{
|
||||
Handle(IntPatch_WLine) wlin = Handle(IntPatch_WLine)::DownCast(L);
|
||||
Handle(IntPatch_RLine) rlin = Handle(IntPatch_RLine)::DownCast(L);
|
||||
IntPatch_IType typL = L->ArcType();
|
||||
const Handle(IntPatch_WLine)& wlin = (const Handle(IntPatch_WLine)&)L;
|
||||
const Handle(IntPatch_RLine)& rlin = (const Handle(IntPatch_RLine)&)L;
|
||||
Standard_Integer Nbptlin = (typL == IntPatch_Walking
|
||||
? wlin->NbPnts()
|
||||
: rlin->NbPnts());
|
||||
@@ -446,7 +446,7 @@ void IntPatch_RstInt::PutVertexOnLine (Handle(IntPatch_Line)& L,
|
||||
const Handle(Adaptor3d_HSurface)& OtherSurf,
|
||||
const Standard_Boolean OnFirst,
|
||||
const Standard_Real Tol,
|
||||
const Standard_Boolean hasBeenAdded)
|
||||
const Standard_Boolean hasBeenAdded)
|
||||
{
|
||||
|
||||
// Domain est le domaine de restriction de la surface Surf.
|
||||
|
Reference in New Issue
Block a user