summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-07-01 18:30:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-07-01 18:30:37 +0200
commit33e902a74465110489c6566f5f0c035ad9432de4 (patch)
treeb2bb4a6d9351100bd2622d221ca1eeda36be9ec7 /spline/spline.cpp
parent15c97dd8ddeba8d0f0e80df39320e3789f3fb4b2 (diff)
compat: drop pre-C++20 macros.hpp header
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r--spline/spline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index b8f84df5..aae7dd2e 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -390,9 +390,9 @@ void spline::set_bundle(bundle b, const QString& axis_name, Axis axis)
invalidate_settings_();
S = s;
- conn_points = s->points.connect_to(&*ctx, &spline::invalidate_settings(), Qt::DirectConnection);
- conn_maxx = s->opts.clamp_x_.connect_to(&*ctx, &spline::invalidate_settings, Qt::DirectConnection);
- conn_maxy = s->opts.clamp_y_.connect_to(&*ctx, &spline::invalidate_settings(), Qt::DirectConnection);
+ conn_points = s->points.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection);
+ conn_maxx = s->opts.clamp_x_.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection);
+ conn_maxy = s->opts.clamp_y_.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection);
}
emit S->recomputed();