diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 20:56:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 21:10:13 +0200 |
commit | d4d799cac8080d4066394f338c31611ae655d5f6 (patch) | |
tree | ff37ab02c0bc8aaf30f44ad4c217527df74a774f /spline/spline.hpp | |
parent | cecd3f8a89693c5722b5e52baebb58edaef1a91c (diff) |
compat: use std::clamp, remove own version
Diffstat (limited to 'spline/spline.hpp')
-rw-r--r-- | spline/spline.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spline/spline.hpp b/spline/spline.hpp index e4f64069..76ac79b8 100644 --- a/spline/spline.hpp +++ b/spline/spline.hpp @@ -110,7 +110,7 @@ class OTR_SPLINE_EXPORT spline : public base_spline double bucket_size_coefficient(const QList<QPointF>& points) const; void update_interp_data() const; double get_value_internal(int x) const; - static bool sort_fn(const QPointF& one, const QPointF& two); + static bool sort_fn(QPointF one, QPointF two); static void ensure_in_bounds(const QList<QPointF>& points, int i, f& x, f& y); static int element_count(const QList<QPointF>& points, double max_input); |