summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
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 ad2ea6b3..cb2d5deb 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -96,7 +96,7 @@ float spline::get_value_no_save_internal(double x)
return ret;
}
-warn_result_unused bool spline::get_last_value(QPointF& point)
+cc_warn_unused_result bool spline::get_last_value(QPointF& point)
{
QMutexLocker foo(&_mutex);
point = last_input_value;
diff --git a/spline/spline.hpp b/spline/spline.hpp
index 300af92d..6771a1cb 100644
--- a/spline/spline.hpp
+++ b/spline/spline.hpp
@@ -56,7 +56,7 @@ struct OTR_SPLINE_EXPORT base_spline_
virtual float get_value(double x) = 0;
virtual float get_value_no_save(double x) const = 0;
- warn_result_unused virtual bool get_last_value(QPointF& point) = 0;
+ cc_warn_unused_result virtual bool get_last_value(QPointF& point) = 0;
virtual void set_tracking_active(bool value) = 0;
virtual double max_input() const = 0;
@@ -133,7 +133,7 @@ public:
float get_value(double x) override;
float get_value_no_save(double x) const override;
- warn_result_unused bool get_last_value(QPointF& point) override;
+ cc_warn_unused_result bool get_last_value(QPointF& point) override;
void add_point(QPointF pt) override;
void add_point(double x, double y) override;