From 29b7e7c2cd3f7d2b72f15168ecfa167beee0ded5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 19 Dec 2015 20:56:44 +0100 Subject: spline-widget: oops, pass by reference --- spline-widget/functionconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline-widget') 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 points, int i) { +static QPointF ensureInBounds(const QList& points, int i) { int siz = points.size(); if (siz == 0 || i < 0) return QPointF(0, 0); -- cgit v1.2.3