summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--spline-widget/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp
index 33100e07..777b4f6f 100644
--- a/spline-widget/functionconfig.cpp
+++ b/spline-widget/functionconfig.cpp
@@ -62,7 +62,7 @@ float Map::getValueInternal(int x) {
return ret * sign;
}
-static QPointF ensureInBounds(QList<QPointF> points, int i) {
+static QPointF ensureInBounds(const QList<QPointF>& points, int i) {
int siz = points.size();
if (siz == 0 || i < 0)
return QPointF(0, 0);