summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
Diffstat (limited to 'spline')
-rw-r--r--spline/spline.cpp2
-rw-r--r--spline/spline.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index 1a0f7257..450643ea 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -377,7 +377,7 @@ void spline::ensure_valid(points_t& list)
QList<QPointF> all_points, tmp;
all_points.reserve(sz), tmp.reserve(sz);
- const double maxx = max_input(), maxy = max_output();
+ const double maxx = max_input();
for (int i = 0; i < sz; i++)
{
diff --git a/spline/spline.hpp b/spline/spline.hpp
index ccc22518..3d2d6e57 100644
--- a/spline/spline.hpp
+++ b/spline/spline.hpp
@@ -99,7 +99,7 @@ class OTR_SPLINE_EXPORT spline : public base_spline
float get_value_internal(int x);
void add_lone_point();
float get_value_no_save_internal(double x);
- static cc_forceinline bool sort_fn(const QPointF& one, const QPointF& two);
+ static bool sort_fn(const QPointF& one, const QPointF& two);
static QPointF ensure_in_bounds(const QList<QPointF>& points, int i);
static int element_count(const QList<QPointF>& points, double max_input);