X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbeziercurve%2Fbpoint.cpp;h=d45488dfa63b9de7253b0e21ca56e19ab49b8288;hb=d049b327afc02b499266b5c895b13e438490b7c0;hp=e879e721f73f962ee2edf76b6441769ef26c0b25;hpb=b2f9e475053bd6719b74f718a4385a1edd9c1795;p=kdenlive diff --git a/src/beziercurve/bpoint.cpp b/src/beziercurve/bpoint.cpp index e879e721..d45488df 100644 --- a/src/beziercurve/bpoint.cpp +++ b/src/beziercurve/bpoint.cpp @@ -27,7 +27,7 @@ BPoint::BPoint() : { } -BPoint::BPoint(QPointF handle1, QPointF point, QPointF handle2) : +BPoint::BPoint(const QPointF &handle1, const QPointF &point, const QPointF &handle2) : h1(handle1), p(point), h2(handle2) @@ -52,7 +52,7 @@ bool BPoint::operator==(const BPoint& point) const point.h2 == h2; } -void BPoint::setP(QPointF point, bool updateHandles) +void BPoint::setP(const QPointF &point, bool updateHandles) { QPointF offset = point - p; p = point; @@ -62,7 +62,7 @@ void BPoint::setP(QPointF point, bool updateHandles) } } -void BPoint::setH1(QPointF handle1) +void BPoint::setH1(const QPointF &handle1) { h1 = handle1; if (handlesLinked) { @@ -73,7 +73,7 @@ void BPoint::setH1(QPointF handle1) } } -void BPoint::setH2(QPointF handle2) +void BPoint::setH2(const QPointF &handle2) { h2 = handle2; if (handlesLinked) { @@ -86,8 +86,8 @@ void BPoint::setH2(QPointF handle2) void BPoint::keepInRange(qreal xMin, qreal xMax) { - Q_UNUSED(xMin); - Q_UNUSED(xMax); + Q_UNUSED(xMin) + Q_UNUSED(xMax) } void BPoint::autoSetLinked()