mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 01:58:22 +08: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:
@@ -202,7 +202,7 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
|
||||
Standard_Integer NbSamplesU, NbSamplesV, i, aNbSamplesU1, aNbSamplesV1;
|
||||
Standard_Real u0, u1, v0, v1, aU, aV, dU, dV;
|
||||
//
|
||||
const Handle(Adaptor3d_HSurface&) MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
|
||||
const Handle(Adaptor3d_HSurface)& MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
|
||||
NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2;
|
||||
NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2;
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user