diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-03 07:16:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-03 07:16:21 +0100 |
commit | 29bea6f9b2166bf3e50815d84aff3535705f6b9b (patch) | |
tree | 0e71e401f300234b0c1a47303fcbfbee5f29c0cd /spline | |
parent | faa3108611e2b31e614d10531548803e2362a4f0 (diff) |
fix build on Linux
Diffstat (limited to 'spline')
-rw-r--r-- | spline/spline.cpp | 2 | ||||
-rw-r--r-- | spline/spline.hpp | 2 |
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); |