mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0023330: Redundant copying in Geom2d_OffsetCurve::Geom2d_OffsetCurve method
Redundant copying of 'C' in Geom2d_OffsetCurve::Geom2d_OffsetCurve(const Handle(Curve)& C, const Standard_Real Offset) method was removed.
This commit is contained in:
parent
e145d04c8d
commit
e26b06c3ae
@ -83,7 +83,7 @@ Geom2d_OffsetCurve::Geom2d_OffsetCurve (const Handle(Curve)& C,
|
||||
: offsetValue (Offset)
|
||||
{
|
||||
if (C->DynamicType() == STANDARD_TYPE(Geom2d_OffsetCurve)) {
|
||||
Handle(OffsetCurve) OC = Handle(OffsetCurve)::DownCast(C->Copy());
|
||||
Handle(OffsetCurve) OC = Handle(OffsetCurve)::DownCast(C);
|
||||
if ((OC->BasisCurve())->Continuity() == GeomAbs_C0)
|
||||
Standard_ConstructionError::Raise();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user