refactor: clang format line length

This commit is contained in:
Lars Toenning
2024-11-16 19:27:30 +01:00
parent c7779e1461
commit 1a0b2a8c5f
1352 changed files with 25994 additions and 26603 deletions

View File

@@ -42,10 +42,11 @@ namespace swift::misc
{
QSharedPointer<QFutureWatcher<T>> watcher(new QFutureWatcher<T>, &QObject::deleteLater);
if (!context) { context = watcher.data(); }
QObject::connect(watcher.data(), &QFutureWatcher<T>::finished, context, [watcher, func = std::forward<F>(func)]() mutable {
if (!watcher->isCanceled()) { func(watcher->future()); }
watcher.reset();
});
QObject::connect(watcher.data(), &QFutureWatcher<T>::finished, context,
[watcher, func = std::forward<F>(func)]() mutable {
if (!watcher->isCanceled()) { func(watcher->future()); }
watcher.reset();
});
watcher->setFuture(future);
QCoreApplication::sendPostedEvents(watcher.data());
}