From b9e76f0570babae13fcca8e3160040c625fd593c Mon Sep 17 00:00:00 2001 From: abk Date: Mon, 19 Nov 2012 11:47:45 +0400 Subject: [PATCH] 0023560: Redundant copying in Geom_OffsetCurve::Geom_OffsetCurve constructor Eliminating redundant copying of 'C' in Geom_OffsetCurve::Geom_OffsetCurve const Handle(Curve)& C, const Standard_Real Offset, const Dir & V) constructor was removed. --- src/Geom/Geom_OffsetCurve.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geom/Geom_OffsetCurve.cxx b/src/Geom/Geom_OffsetCurve.cxx index 573f438516..b9b821ea55 100755 --- a/src/Geom/Geom_OffsetCurve.cxx +++ b/src/Geom/Geom_OffsetCurve.cxx @@ -92,7 +92,7 @@ Geom_OffsetCurve::Geom_OffsetCurve (const Handle(Curve)& C, : direction(V), offsetValue(Offset) { if (C->DynamicType() == STANDARD_TYPE(Geom_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();