diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-25 20:57:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-25 20:57:47 +0200 |
commit | ba1f992a958c383d3085cad4946bbf1b4fdebc04 (patch) | |
tree | 157aee6a54986c1f5aeb127ba86a00e945766b4f /spline/spline.hpp | |
parent | 309871bcc513298aa3760d9be3cc43d11553f761 (diff) |
spline: simplify
- don't copy-paste signal disconnection
- bundle and settings are never null after ctor
Diffstat (limited to 'spline/spline.hpp')
-rw-r--r-- | spline/spline.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spline/spline.hpp b/spline/spline.hpp index eb6c7b8c..7b9b6aa3 100644 --- a/spline/spline.hpp +++ b/spline/spline.hpp @@ -104,6 +104,8 @@ class OTR_SPLINE_EXPORT spline : public base_spline static QPointF ensure_in_bounds(const QList<QPointF>& points, int i); static int element_count(const QList<QPointF>& points, double max_input); + void disconnect_signals(); + std::shared_ptr<spline_detail::settings> s; QMetaObject::Connection conn_changed, conn_maxx, conn_maxy; @@ -151,7 +153,7 @@ public: void set_tracking_active(bool value) override; bundle get_bundle(); - void ensure_valid(points_t& the_points); + void ensure_valid(points_t& points_); std::shared_ptr<spline_detail::base_settings> get_settings() override; std::shared_ptr<const spline_detail::base_settings> get_settings() const override; |