summaryrefslogtreecommitdiffhomepage
path: root/spline
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
parent15c97dd8ddeba8d0f0e80df39320e3789f3fb4b2 (diff)
compat: drop pre-C++20 macros.hpp header
Diffstat (limited to 'spline')
-rw-r--r--spline/spline-widget.cpp1
-rw-r--r--spline/spline.cpp6
2 files changed, 3 insertions, 4 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index d26fb13f..46e2095c 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -1,6 +1,5 @@
#include "spline-widget.hpp"
#include "compat/math.hpp"
-#include "compat/macros.hpp"
#include <algorithm>
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();