QgsCompoundCurve::QgsCompoundCurve( const QgsCompoundCurve &curve ): QgsCurve( curve ) { mWkbType = curve.wkbType(); for ( const QgsCurve *c : curve.mCurves ) { mCurves.append( static_cast<QgsCurve *>( c->clone() ) ); } }
QgsCompoundCurve::QgsCompoundCurve( const QgsCompoundCurve &curve ): QgsCurve( curve ) { mWkbType = curve.wkbType(); mCurves.reserve( curve.mCurves.size() ); for ( const QgsCurve *c : curve.mCurves ) { mCurves.append( c->clone() ); } }