mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024023: Revamp the OCCT Handle -- downcast (automatic)
Automatic update by command "occt_upgrade . -downcast" C-style cast of Handle to that of derived type (now illegal) is replaced by call to DownCast() Const reference local variables of Handle type initialized by result of DownCast are replaced by normal variables.
This commit is contained in:
@@ -24,10 +24,10 @@
|
||||
#include <TColgp_HArray1OfVec2d.hxx>
|
||||
|
||||
|
||||
#define tabTang (*(Handle(TColgp_HArray1OfVec)*)&ttabTang)
|
||||
#define tabCurv (*(Handle(TColgp_HArray1OfVec)*)&ttabCurv)
|
||||
#define tabTang2d (*(Handle(TColgp_HArray1OfVec2d)*)&ttabTang2d)
|
||||
#define tabCurv2d (*(Handle(TColgp_HArray1OfVec2d)*)&ttabCurv2d)
|
||||
#define tabTang Handle(TColgp_HArray1OfVec)::DownCast (ttabTang)
|
||||
#define tabCurv Handle(TColgp_HArray1OfVec)::DownCast (ttabCurv)
|
||||
#define tabTang2d Handle(TColgp_HArray1OfVec2d)::DownCast (ttabTang2d)
|
||||
#define tabCurv2d Handle(TColgp_HArray1OfVec2d)::DownCast (ttabCurv2d)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user