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:
@@ -355,7 +355,7 @@ Handle(Geom_BSplineSurface) GeomConvert::SurfaceToBSplineSurface
|
||||
Handle(Geom_Surface) S;
|
||||
Handle(Geom_OffsetSurface) OffsetSur;
|
||||
if (Sr->IsKind(STANDARD_TYPE(Geom_OffsetSurface))) {
|
||||
OffsetSur = *((Handle(Geom_OffsetSurface)*)& Sr);
|
||||
OffsetSur = Handle(Geom_OffsetSurface)::DownCast (Sr);
|
||||
S = OffsetSur->Surface();
|
||||
if (!S.IsNull()) { // Convert the equivalent surface.
|
||||
return SurfaceToBSplineSurface(S);
|
||||
|
Reference in New Issue
Block a user