summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-21 22:17:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commit6d39be4570eb0dd8b76fb3319d89ab687cb38362 (patch)
tree4e7b1521e5f8ff59e192acee2a8736a4733756b2 /spline-widget/spline.hpp
parente82b071bf96b9b514c575c87d261d28d7321c80f (diff)
spline-widget: return mem<settings> and not settings&
Diffstat (limited to 'spline-widget/spline.hpp')
-rw-r--r--spline-widget/spline.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/spline-widget/spline.hpp b/spline-widget/spline.hpp
index 5d521a6c..0ffc4de9 100644
--- a/spline-widget/spline.hpp
+++ b/spline-widget/spline.hpp
@@ -40,7 +40,6 @@ signals:
class OPENTRACK_SPLINE_EXPORT spline final
{
-private:
int precision(const QList<QPointF>& points) const;
void update_interp_data();
float getValueInternal(int x);
@@ -104,8 +103,8 @@ public:
bundle get_bundle();
void recompute();
- settings& get_settings();
- const settings& get_settings() const;
+ mem<settings> get_settings();
+ mem<const settings> get_settings() const;
using points_t = decltype(s->points.get());
};