diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-15 15:29:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-16 15:32:03 +0100 |
commit | aa3d6dd09fb2ecf4a5bf91536ca67b4f71b24613 (patch) | |
tree | 50d55ab1822ba68733325955ce6be24d82752a87 /spline/spline.cpp | |
parent | 94cdd29400d739fcec664266537ecf3904a8476d (diff) |
many: switch from using std::unique_ptr<t>::get() to &*ptr
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r-- | spline/spline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index 9f92c074..ecbfc3a0 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -391,11 +391,11 @@ void spline::set_bundle(bundle b, const QString& axis_name, Axis axis) S = s; conn_points = QObject::connect(&s->points, value_::value_changed<QList<QPointF>>(), - ctx.get(), [this] { invalidate_settings(); }, Qt::DirectConnection); + &*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection); conn_maxx = QObject::connect(&s->opts.clamp_x_, value_::value_changed<int>(), - ctx.get(), [this](double) { invalidate_settings(); }, Qt::DirectConnection); + &*ctx, [this](double) { invalidate_settings(); }, Qt::DirectConnection); conn_maxy = QObject::connect(&s->opts.clamp_y_, value_::value_changed<int>(), - ctx.get(), [this](double) { invalidate_settings(); }, Qt::DirectConnection); + &*ctx, [this](double) { invalidate_settings(); }, Qt::DirectConnection); } emit S->recomputed(); |