1
0
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:
abv
2015-07-02 16:41:05 +03:00
parent ce8b059af3
commit c5f3a42524
158 changed files with 863 additions and 888 deletions

View File

@@ -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)