summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:45:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:47:20 +0200
commitc1be0706d4872f31bcc09c0963c7602ac19f8c76 (patch)
treef66a4c525eb522447d543429a5c026c9325d9b1f /spline
parent74ce228b1e3e756174c2e75579bfe500701ee570 (diff)
logic/work: const correctness
Diffstat (limited to 'spline')
-rw-r--r--spline/spline.cpp2
-rw-r--r--spline/spline.hpp4
2 files changed, 3 insertions, 3 deletions
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<settings> 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;