summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-25 17:55:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-25 17:55:27 +0200
commit83867b413c449101bbe14615ff857a7785432ede (patch)
tree3b7a7fd68da8158a97fd67db9806fa6d984ebf80 /spline/spline.hpp
parent00cceaffca6063b963d0848480acaa99f5fecaad (diff)
cleanup only
- replace warn_unused_result with [[nodiscard]] - remove some redundant w_a_r - replace std::decay with remove_cvref_t - simplify compat/math.hpp
Diffstat (limited to 'spline/spline.hpp')
-rw-r--r--spline/spline.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/spline/spline.hpp b/spline/spline.hpp
index faecbb2c..eb6c7b8c 100644
--- a/spline/spline.hpp
+++ b/spline/spline.hpp
@@ -55,7 +55,7 @@ struct OTR_SPLINE_EXPORT base_spline_
virtual float get_value(double x) = 0;
virtual float get_value_no_save(double x) const = 0;
- cc_warn_unused_result virtual bool get_last_value(QPointF& point) = 0;
+ [[nodiscard]] virtual bool get_last_value(QPointF& point) = 0;
virtual void set_tracking_active(bool value) = 0;
virtual double max_input() const = 0;
@@ -139,7 +139,7 @@ public:
float get_value(double x) override;
float get_value_no_save(double x) const override;
- cc_warn_unused_result bool get_last_value(QPointF& point) override;
+ [[nodiscard]] bool get_last_value(QPointF& point) override;
void add_point(QPointF pt) override;
void add_point(double x, double y) override;