summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline-widget.cpp
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-widget.cpp
parente82b071bf96b9b514c575c87d261d28d7321c80f (diff)
spline-widget: return mem<settings> and not settings&
Diffstat (limited to 'spline-widget/spline-widget.cpp')
-rw-r--r--spline-widget/spline-widget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index ce16f7be..54107bbe 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -5,6 +5,7 @@
* copyright notice and this permission notice appear in all copies.
*/
+#include "compat/util.hpp"
#include "spline-widget.hpp"
#include <QPainter>
#include <QPaintEvent>
@@ -40,8 +41,8 @@ void spline_widget::setConfig(spline* spl)
if (spl)
{
- spline::settings& s = spl->get_settings();
- connection = connect(&s, &spline::settings::recomputed,
+ mem<spline::settings> s = spl->get_settings();
+ connection = connect(s.get(), &spline::settings::recomputed,
this, [this]() { reload_spline(); },
Qt::QueuedConnection);
}