diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-07 08:10:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-10 11:19:22 +0200 |
commit | 940ae0898c5e836c3d82fac85f5fa55bb75414a1 (patch) | |
tree | 81f4d053a7cf75d40ca66da7d5b9ee346d558f95 /spline/spline.cpp | |
parent | e8f83186825966232900cf7c70ac88134cbdf0cd (diff) |
spline: reformat
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r-- | spline/spline.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index 3787e0f9..6167de0d 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -363,17 +363,18 @@ void spline::set_bundle(bundle b) if (b) { connection = QObject::connect(b.get(), &bundle_::changed, - s.get(), [&]() { - // we're holding the mutex to allow signal disconnection in spline dtor - // before this slot gets called for the next time + s.get(), [&]() + { + // we're holding the mutex to allow signal disconnection in spline dtor + // before this slot gets called for the next time - // spline isn't a QObject and the connection context is incorrect + // spline isn't a QObject and the connection context is incorrect - QMutexLocker l(&_mutex); - recompute(); - emit s->recomputed(); - }, - Qt::QueuedConnection); + QMutexLocker l(&_mutex); + recompute(); + emit s->recomputed(); + }, + Qt::QueuedConnection); } recompute(); |