From c1be0706d4872f31bcc09c0963c7602ac19f8c76 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Jun 2019 18:45:59 +0200 Subject: logic/work: const correctness --- spline/spline.cpp | 2 +- spline/spline.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spline') diff --git a/spline/spline.cpp b/spline/spline.cpp index 3ec3b5dc..98a82711 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -37,7 +37,7 @@ spline::~spline() spline::spline() : spline(QString{}, QString{}, Axis(-1)) {} -void spline::set_tracking_active(bool value) +void spline::set_tracking_active(bool value) const { std::shared_ptr S; { diff --git a/spline/spline.hpp b/spline/spline.hpp index a78db8dd..85f1c969 100644 --- a/spline/spline.hpp +++ b/spline/spline.hpp @@ -54,7 +54,7 @@ struct OTR_SPLINE_EXPORT base_spline_ virtual double get_value_no_save(double x) const = 0; [[nodiscard]] virtual bool get_last_value(QPointF& point) = 0; - virtual void set_tracking_active(bool value) = 0; + virtual void set_tracking_active(bool value) const = 0; virtual double max_input() const = 0; virtual double max_output() const = 0; @@ -146,7 +146,7 @@ public: const points_t& get_points() const override; - void set_tracking_active(bool value) override; + void set_tracking_active(bool value) const override; bundle get_bundle(); void ensure_valid(points_t& in_out) const; -- cgit v1.2.3