From f5e0e5b2a060ecb6c2115d0c7ce5480568285664 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 29 Jan 2014 10:53:01 +0200 Subject: [PATCH] Use QVector & QVector::operator+=(const QVector & other) instead for. --HG-- branch : develop --- src/geometry/vsplinepath.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/geometry/vsplinepath.cpp b/src/geometry/vsplinepath.cpp index db8c401b3..9900c61ac 100644 --- a/src/geometry/vsplinepath.cpp +++ b/src/geometry/vsplinepath.cpp @@ -96,12 +96,7 @@ QVector VSplinePath::GetPathPoints() const { VSpline spl(path[i-1].P(), path[i].P(), path[i-1].Angle2(), path[i].Angle1(), path[i-1].KAsm2(), path[i].KAsm1(), this->kCurve); - //TODO Use QVector & QVector::operator+=(const QVector & other) instead for. - QVector splP = spl.GetPoints(); - for (qint32 j = 0; j < splP.size(); ++j) - { - pathPoints.append(splP[j]); - } + pathPoints += spl.GetPoints(); } return pathPoints; }